[poppler] Branch 'poppler-0.10' - poppler/CairoOutputDev.cc

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


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

New commits:
commit c9191d5031a684a840ade7a3b3cc8d86613c347b
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 9933d8e..07583b5 100644
--- a/poppler/CairoOutputDev.cc
+++ b/poppler/CairoOutputDev.cc
@@ -236,7 +236,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