75a61b
From 88eb9b4f57b488f0d7d79a8e115123484f4240c8 Mon Sep 17 00:00:00 2001
75a61b
From: Adrian Johnson <ajohnson@redneon.com>
75a61b
Date: Sun, 19 Oct 2014 21:36:39 +1030
75a61b
Subject: [PATCH] cairo: fix crash when no group color space
75a61b
75a61b
Bug 85137
75a61b
---
75a61b
 poppler/CairoOutputDev.cc | 2 +-
75a61b
 1 file changed, 1 insertion(+), 1 deletion(-)
75a61b
75a61b
diff --git a/poppler/CairoOutputDev.cc b/poppler/CairoOutputDev.cc
75a61b
index 3babb63..03130ac 100644
75a61b
--- a/poppler/CairoOutputDev.cc
75a61b
+++ b/poppler/CairoOutputDev.cc
75a61b
@@ -1624,7 +1624,7 @@ void CairoOutputDev::setSoftMask(GfxState * state, double * bbox, GBool alpha,
75a61b
     cairo_t *maskCtx = cairo_create(source);
75a61b
 
75a61b
     //XXX: hopefully this uses the correct color space */
75a61b
-    if (!alpha) {
75a61b
+    if (!alpha && groupColorSpaceStack->cs) {
75a61b
       GfxRGB backdropColorRGB;
75a61b
       groupColorSpaceStack->cs->getRGB(backdropColor, &backdropColorRGB);
75a61b
       /* paint the backdrop */
75a61b
-- 
75a61b
2.1.1
75a61b