From 54dec77656eb9177c9dab01962a33f571ab25ee0 Mon Sep 17 00:00:00 2001
From: kramm <kramm>
Date: Sun, 23 Nov 2008 13:51:58 +0000
Subject: [PATCH] don't ignore 1x1 images- they may be square root roofs or
 fraction lines

---
 lib/pdf/GFXOutputDev.cc |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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("<verbose> Ignoring %d by %d image", width, height);
       unsigned char buf[8];
-- 
1.7.10.4