[gs-bugs] [Bug 691892] dev_draw.c doesn't adhere to cliptext's accumulation contract

bugzilla-daemon at ghostscript.com bugzilla-daemon at ghostscript.com
Wed Feb 2 16:38:05 UTC 2011


http://bugs.ghostscript.com/show_bug.cgi?id=691892

Tor Andersson <tor.andersson at artifex.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #1 from Tor Andersson <tor.andersson at artifex.com> 2011-02-02 16:38:00 UTC ---
The bug is actually on the other side of the interface -- the interpreter was
incorrectly increasing csi->clipdepth when accumulating clipped text
continuations.


--- old-mupdf-scrub/mupdf/pdf_build.c   2011-02-02 17:37:18.378934628 +0100
+++ new-mupdf-scrub/mupdf/pdf_build.c   2011-02-02 17:37:18.851048391 +0100
@@ -464,7 +464,8 @@

        if (doclip)
        {
-               gstate->clipdepth++;
+               if (csi->accumulate < 2)
+                       gstate->clipdepth++;
                csi->dev->cliptext(csi->dev->user, text, gstate->ctm,
csi->accumulate);
                csi->accumulate = 2;
        }

The above patch fixes the problem.

-- 
Configure bugmail: http://bugs.ghostscript.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the gs-bugs mailing list