diff --git a/poppler/CairoOutputDev.cc b/poppler/CairoOutputDev.cc index 26b8010..f5e5c9a 100644 --- a/poppler/CairoOutputDev.cc +++ b/poppler/CairoOutputDev.cc @@ -1609,6 +1609,9 @@ void CairoOutputDev::drawImage(GfxState *state, Object *ref, Stream *str, cairo_matrix_t matrix; int is_identity_transform; + if (width == 1 && height == 1) + return; + buffer = (unsigned char *)gmalloc (width * height * 4); /* TODO: Do we want to cache these? */