Commit 26a82171 authored by Carlos Garcia Campos's avatar Carlos Garcia Campos

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.
parent 5e68e52d
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment