poppler/CairoOutputDev.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit 119b6b752314c9b13440eddf5bd1d5cef2966e80 Author: Adrian Johnson <[email protected]> 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); _______________________________________________ poppler mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/poppler
