From e0cdf06c7b589679774f0361071468a317ccb8f4 Mon Sep 17 00:00:00 2001 From: Matthias Kramm Date: Thu, 17 Sep 2009 16:50:32 +0200 Subject: [PATCH] re-added fix for transparency groups --- lib/pdf/GFXOutputDev.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/pdf/GFXOutputDev.cc b/lib/pdf/GFXOutputDev.cc index af891cb..84a4635 100644 --- a/lib/pdf/GFXOutputDev.cc +++ b/lib/pdf/GFXOutputDev.cc @@ -2696,6 +2696,9 @@ void GFXOutputDev::endTransparencyGroup(GfxState *state) dbg("endTransparencyGroup this->device now back to %08x (destroying %08x)", states[statepos].olddevice, this->device); + while(statepos && !states[statepos].olddevice) + --statepos; + this->device = states[statepos].olddevice; if(!this->device) { msg(" Invalid state nesting"); -- 1.7.10.4