don't ignore 1x1 images- they may be square root roofs or fraction lines
authorkramm <kramm>
Sun, 23 Nov 2008 13:51:58 +0000 (13:51 +0000)
committerkramm <kramm>
Sun, 23 Nov 2008 13:51:58 +0000 (13:51 +0000)
lib/pdf/GFXOutputDev.cc

index 7f19c24..7d45e50 100644 (file)
@@ -2175,7 +2175,7 @@ void GFXOutputDev::drawGeneralImage(GfxState *state, Object *ref, Stream *str,
   imgStr = new ImageStream(str, width, ncomps,bits);
   imgStr->reset();
 
-  if(!width || !height || (height<=1 && width<=1 && maskWidth<=1 && maskHeight<=1))
+  if(!width || !height || ((height+width)<=1 && (maskWidth+maskHeight)<=1))
   {
       msg("<verbose> Ignoring %d by %d image", width, height);
       unsigned char buf[8];