X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=lib%2Fpdf%2Fxpdf-changes.patch;fp=lib%2Fpdf%2Fxpdf-changes.patch;h=234952dbf4a2b6a0d30a92e5bfaea5156582d323;hp=83adec36612a025fba5f53d7d0f4dc8dd5f62a5a;hb=ad60d7e0a361c58fc9872753cfb872c3cc54b82f;hpb=886a79f1f7573aff476e7053637292c46f3c1471 diff --git a/lib/pdf/xpdf-changes.patch b/lib/pdf/xpdf-changes.patch index 83adec3..234952d 100644 --- a/lib/pdf/xpdf-changes.patch +++ b/lib/pdf/xpdf-changes.patch @@ -992,3 +992,21 @@ diff -u -r1.5 -r1.6 } dx *= state->getHorizScaling(); dy *= state->getFontSize(); +@@ -3824,6 +3833,7 @@ + out->beginTransparencyGroup(state, bbox, blendingColorSpace, + isolated, knockout, softMask); + } ++ GfxState*old_state = state; + + // set new base matrix + for (i = 0; i < 6; ++i) { +@@ -3835,6 +3845,9 @@ + display(str, gFalse); + + if (softMask || transpGroup) { ++ // restore graphics state ++ while(state != old_state) ++ restoreState(); + out->endTransparencyGroup(state); + } +