- boolpolydev->beginTransparencyGroup(state, bbox, blendingColorSpace, isolated, knockout, forSoftMask);
- rgbdev->beginTransparencyGroup(state, bbox, blendingColorSpace, isolated, knockout, forSoftMask);
+#if (xpdfMajorVersion*10000 + xpdfMinorVersion*100 + xpdfUpdateVersion) < 30207
+ GfxState*state1 = state->copy();
+ GfxState*state2 = state->copy();
+ state1->setPath(0);
+ state1->setPath(state->getPath()->copy());
+ state2->setPath(0);
+ state2->setPath(state->getPath()->copy());
+#else
+ GfxState*state1 = state->copy(gTrue);
+ GfxState*state2 = state->copy(gTrue);
+#endif
+ boolpolydev->beginTransparencyGroup(state1, bbox, blendingColorSpace, isolated, knockout, forSoftMask);
+ rgbdev->beginTransparencyGroup(state2, bbox, blendingColorSpace, isolated, knockout, forSoftMask);