From: Matthias Kramm Date: Thu, 17 Sep 2009 14:50:32 +0000 (+0200) Subject: re-added fix for transparency groups X-Git-Tag: version-0-9-1~274 X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=commitdiff_plain;h=e0cdf06c7b589679774f0361071468a317ccb8f4 re-added fix for transparency groups --- 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");