[poppler] poppler/CairoOutputDev.cc

Carlos Garcia Campos carlosgc at kemper.freedesktop.org
Sun Feb 22 09:16:43 PST 2009


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

New commits:
commit 26a8217160c1eaeeadb92023b27e68f402e38dd0
Author: Carlos Garcia Campos <carlosgc at gnome.org>
Date:   Sun Feb 22 18:14:15 2009 +0100

    Check if cairo_shape is not NULL before using it.
    
    We were checking shape instead. It fixes a crash with some documents.
    See bug #17337.

diff --git a/poppler/CairoOutputDev.cc b/poppler/CairoOutputDev.cc
index 6e79785..822d66d 100644
--- a/poppler/CairoOutputDev.cc
+++ b/poppler/CairoOutputDev.cc
@@ -282,7 +282,7 @@ void CairoOutputDev::setDefaultCTM(double *ctm) {
   matrix.y0 = ctm[5];
 
   cairo_transform (cairo, &matrix);
-  if (shape)
+  if (cairo_shape)
       cairo_transform (cairo_shape, &matrix);
 
   OutputDev::setDefaultCTM(ctm);


More information about the poppler mailing list