[poppler] poppler/PSOutputDev.cc

Albert Astals Cid aacid at kemper.freedesktop.org
Fri Sep 19 15:59:07 PDT 2008


 poppler/PSOutputDev.cc |    6 ++++++
 1 file changed, 6 insertions(+)

New commits:
commit ac16174da1d6f19445f78e7cd7c4a18cb9524dde
Author: Albert Astals Cid <aacid at kde.org>
Date:   Sat Sep 20 00:52:19 2008 +0200

    make sure the image is setup before using it, otherwise some things don't print correctly like PDF from bug 17645

diff --git a/poppler/PSOutputDev.cc b/poppler/PSOutputDev.cc
index b80654a..014036b 100644
--- a/poppler/PSOutputDev.cc
+++ b/poppler/PSOutputDev.cc
@@ -4379,6 +4379,8 @@ void PSOutputDev::doImageL1(Object *ref, GfxImageColorMap *colorMap,
       str->close();
       delete str;
     } else {
+      // make sure the image is setup, it sometimes is not like on bug #17645
+      setupImage(ref->getRef(), str);
       // set up to use the array already created by setupImages()
       writePSFmt("ImData_{0:d}_{1:d} 0\n", ref->getRefNum(), ref->getRefGen());
     }
@@ -4840,6 +4842,8 @@ void PSOutputDev::doImageL2(Object *ref, GfxImageColorMap *colorMap,
       str2->close();
       delete str2;
     } else {
+      // make sure the image is setup, it sometimes is not like on bug #17645
+      setupImage(ref->getRef(), str);
       // set up to use the array already created by setupImages()
       writePSFmt("ImData_{0:d}_{1:d} 0\n", ref->getRefNum(), ref->getRefGen());
     }
@@ -5108,6 +5112,8 @@ void PSOutputDev::doImageL3(Object *ref, GfxImageColorMap *colorMap,
       str2->close();
       delete str2;
     } else {
+      // make sure the image is setup, it sometimes is not like on bug #17645
+      setupImage(ref->getRef(), str);
       // set up to use the array already created by setupImages()
       writePSFmt("ImData_{0:d}_{1:d} 0\n", ref->getRefNum(), ref->getRefGen());
     }


More information about the poppler mailing list