[DVIPDFMx] BUG: wrong box by pdf:annot, patch provided

Alexander Grahn A.Grahn at fzd.de
Fri Jun 20 20:29:51 KST 2008


Hi,

while scrolling through file spc_pdfm.c, I stumbled across another
location where a wrong box might be calculated in case of a nonzero
depth argument given. It's in the function ``spc_handler_pdfm_bead''
for handling ``bead'' and ``thread'' specials:

--- src/spc_pdfm.c
+++ src/spc_pdfm.c.new
@@ -916,7 +916,7 @@
     rect.llx = cp.x;
     rect.lly = cp.y - spe->mag * ti.depth;
     rect.urx = rect.llx + spe->mag * ti.width;
-    rect.ury = rect.lly + spe->mag * ti.height;
+    rect.ury = cp.y + spe->mag * ti.height;
   }
 
   skip_white(&args->curptr, args->endptr);

Regards,
Alexander



More information about the dvipdfmx mailing list