X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=lib%2Fpdf%2FGFXOutputDev.cc;fp=lib%2Fpdf%2FGFXOutputDev.cc;h=84a4635dc4abe9f38c3762dc8495fbea3602c818;hp=af891cbf21b07b1ce2e9c5da211b0e333d668d7c;hb=e0cdf06c7b589679774f0361071468a317ccb8f4;hpb=6de6c1cacd9cd62638470f74f41a288038932b33 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");