X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fpdf%2Fxpdf-changes.patch;h=c6c2db060763e8007c653394c86b1d8e91a805dd;hb=70bab22302a67dc820ef021691d1766a30a1aed8;hp=47720ae3e865d29d29a1b44d779a523f2502b6ef;hpb=be877cacfe29fb6d58586c24af80ba7510f0f097;p=swftools.git diff --git a/lib/pdf/xpdf-changes.patch b/lib/pdf/xpdf-changes.patch index 47720ae..c6c2db0 100644 --- a/lib/pdf/xpdf-changes.patch +++ b/lib/pdf/xpdf-changes.patch @@ -39,6 +39,24 @@ diff -u -r1.9 -r1.10 } Gfx::Gfx(XRef *xrefA, OutputDev *outA, Dict *resDict, +@@ -3783,6 +3789,7 @@ + pushResources(resDict); + + // save current graphics state ++ GfxState*mystate = state; + saveState(); + + // kill any pre-existing path +@@ -3848,6 +3855,9 @@ + + // restore graphics state + restoreState(); ++ if(state!=mystate) { ++ fprintf(stderr, "Invalid state nesting in PDF file- file broken?\n"); ++ } + + // pop resource stack + popResources(); Index: GfxFont.h =================================================================== RCS file: /home/kramm/cvs/swftools.cache.cvsroot/swftools.cache/pdf2swf/xpdf/GfxFont.h,v