Bug with hairline arrows



Hi all,

I noticed a small bug in drawing of some hollow arrow heads if line
width is set to 0.0 (hairline). You can see this directly in dia and in
the attached eps files in arrows: left 3, right 7 and left 15.

The bug appears as add_len in arrows.c::calculate_arrow_point will be
always zero if line width is 0.0. So I set line width to 0.0001. I got
to admit that I don't know if this is the best value for it, but it
works.

The patch is diff'ed to current cvs and attached. I would be glad if you
commit it.

Ciao,
Michi

Attachment: buggy-arrow.dia
Description: Binary data

Attachment: buggy-arrows.eps
Description: PostScript document

Attachment: patched-arrows.eps
Description: PostScript document

Attachment: hairline-arrow.patch
Description: Binary data



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]