[poppler] poppler/CairoOutputDev.cc

Adrian Johnson ajohnson at kemper.freedesktop.org
Wed Feb 15 00:21:19 PST 2012


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

New commits:
commit 119b6b752314c9b13440eddf5bd1d5cef2966e80
Author: Adrian Johnson <ajohnson at redneon.com>
Date:   Mon Feb 6 16:50:11 2012 +1030

    cairo: don't read inline image streams twice
    
    Bug 45668

diff --git a/poppler/CairoOutputDev.cc b/poppler/CairoOutputDev.cc
index ec28fb6..dab1e47 100644
--- a/poppler/CairoOutputDev.cc
+++ b/poppler/CairoOutputDev.cc
@@ -2775,7 +2775,8 @@ void CairoOutputDev::drawImage(GfxState *state, Object *ref, Stream *str,
 
   cairo_surface_mark_dirty (image);
 
-  setMimeData(str, ref, image);
+  if (!inlineImg) /* don't read stream twice if it is an inline image */
+    setMimeData(str, ref, image);
 
   pattern = cairo_pattern_create_for_surface (image);
   cairo_surface_destroy (image);


More information about the poppler mailing list