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

New commits:
commit c9191d5031a684a840ade7a3b3cc8d86613c347b
Author: Carlos Garcia Campos <[email protected]>
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);
_______________________________________________
poppler mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/poppler

Reply via email to