utils/ImageOutputDev.cc |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 3deb229bc5b223b3ff3ae6689ddbb463907341c0
Author: Albert Astals Cid <[email protected]>
Date:   Thu Jan 29 00:51:13 2009 +0100

    Add line that for some reason was not imported from xpdf file
    
    Fixes bug 19789

diff --git a/utils/ImageOutputDev.cc b/utils/ImageOutputDev.cc
index fe4f0a6..be3807f 100644
--- a/utils/ImageOutputDev.cc
+++ b/utils/ImageOutputDev.cc
@@ -130,7 +130,8 @@ void ImageOutputDev::drawImage(GfxState *state, Object 
*ref, Stream *str,
 
   // dump JPEG file
   if (dumpJPEG && str->getKind() == strDCT &&
-      colorMap->getNumPixelComps() == 3 &&
+      (colorMap->getNumPixelComps() == 1 ||
+       colorMap->getNumPixelComps() == 3) &&
       !inlineImg) {
 
     // open the image file
_______________________________________________
poppler mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/poppler

Reply via email to