Blame SOURCES/poppler-0.26.5-check-groupColorSpaceStack-existance.patch

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