fixed crash due to transparency groups without a colorspace
authorkramm <kramm>
Sat, 2 Dec 2006 14:30:20 +0000 (14:30 +0000)
committerkramm <kramm>
Sat, 2 Dec 2006 14:30:20 +0000 (14:30 +0000)
lib/pdf/GFXOutputDev.cc

index 8da82ec..e00096c 100644 (file)
@@ -2461,7 +2461,10 @@ void GFXOutputDev::beginTransparencyGroup(GfxState *state, double *bbox,
                                      GBool isolated, GBool knockout,
                                      GBool forSoftMask)
 {
-    char*colormodename = GfxColorSpace::getColorSpaceModeName(blendingColorSpace->getMode());
+    char*colormodename = "";
+    if(blendingColorSpace) {
+       colormodename = GfxColorSpace::getColorSpaceModeName(blendingColorSpace->getMode());
+    }
     msg("<verbose> beginTransparencyGroup %.1f/%.1f/%.1f/%.1f %s isolated=%d knockout=%d forsoftmask=%d", bbox[0],bbox[1],bbox[2],bbox[3], colormodename, isolated, knockout, forSoftMask);
     states[statepos].createsoftmask = forSoftMask;
     states[statepos].transparencygroup = !forSoftMask;