GNOME Bugzilla – Bug 358176
Dia doesn't draw hollow arrow heads with linewidth 0.0 correctly.
Last modified: 2006-10-14 16:46:16 UTC
Please describe the problem: The bug can be reproduced as described below. It is not only on the screen but also in all export plugins. That's why the bug is in lib/arrows.c Steps to reproduce: 1. Create an arrow. 2. Change any of the arrow heads to a hollow triangle (some other hollow heads will work too) 3. Set line width of arrow to 0.0 (hairline) Actual results: A line is drawn through the hollow part of the arrow head. Expected results: The area should keep hollow. Does this happen every time? Yes. Other information: I have a patch for this.
Created attachment 73587 [details] [review] patch for hollow arrow heads with line width 0.0 The error occurs as add_len is always 0 if line width is 0.0, so the line is not set back correctly. The easiest solution to this was to change line width in the beginning as it is done in other parts of the dia code. As this argument was constant, I also had to change the header file.
Thanks, appplied. 2006-10-14 Hans Breuer <hans@breuer.org> * lib/arrows.[hc] : draw hollow arrow heads with linewidth 0.0 correctly. Patch from Michael Duelli fixing bug #358176