[DVIPDFMx] BUG: wrong box by pdf:annot, patch provided
Jin-Hwan Cho
chofchof at ktug.or.kr
Sat Jun 21 08:23:19 KST 2008
Thank you very much, Alexander.
I patched the source code of dvipdfmx.
Karl, Jonathan, and Kakuto san,
Two files, pdfnames.c and spc_pdfm.c were slightly changed
because of the bug found by Alexander and some memory feaks
found by Matthias.
Best regards, ChoF.
On Jun 20, 2008, at 8:29 PM, Alexander Grahn wrote:
> 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
> _______________________________________________
> dvipdfmx mailing list
> dvipdfmx at ktug.or.kr
> http://project.ktug.or.kr/mailman/listinfo/dvipdfmx
More information about the dvipdfmx
mailing list