Summary: | dev_draw.c doesn't adhere to cliptext's accumulation contract | ||
---|---|---|---|
Product: | MuPDF | Reporter: | zeniko |
Component: | fitz | Assignee: | Tor Andersson <tor.andersson> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | P4 | ||
Version: | unspecified | ||
Hardware: | PC | ||
OS: | Windows 7 | ||
URL: | http://code.google.com/p/sumatrapdf/issues/detail?id=1174 | ||
Customer: | Word Size: | --- |
Description
zeniko
2011-01-17 12:09:12 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. |