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

Jonathan Kew jonathan_kew at sil.org
Sat Jun 21 17:26:12 KST 2008


Thanks, ChoF. I have applied these patches in TeXLive, and also  
merged into xdvipdfmx.

JK

On 21 Jun 2008, at 12:23 am, Jin-Hwan Cho wrote:

> 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
>
> X-Quarantine ID  /var/spool/MD-Quarantine/19/ 
> qdir-2008-06-20-19.23.31-001




More information about the dvipdfmx mailing list