From: kramm Date: Sun, 23 Nov 2008 13:51:58 +0000 (+0000) Subject: don't ignore 1x1 images- they may be square root roofs or fraction lines X-Git-Tag: release-0-9-0~807 X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=commitdiff_plain;h=54dec77656eb9177c9dab01962a33f571ab25ee0 don't ignore 1x1 images- they may be square root roofs or fraction lines --- diff --git a/lib/pdf/GFXOutputDev.cc b/lib/pdf/GFXOutputDev.cc index 7f19c24..7d45e50 100644 --- a/lib/pdf/GFXOutputDev.cc +++ b/lib/pdf/GFXOutputDev.cc @@ -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(" Ignoring %d by %d image", width, height); unsigned char buf[8];