-draw path ML misses lines
Posted: 2015-01-21T16:41:33-07:00
The following correctly draws three lines that don't have overlapping ends:
But when I adjust the coordinates of the middle line, so the first and second end where the next line starts, it draws only one line:
A workaround is to draw the lines in a different order:
This seems to be a generic problem: when one line ends where the next starts, the second line is not drawn.
Tested with v6.9.0-0 under Windows 8.1.
Code: Select all
%IM%convert -size 200x100 xc: -stroke #000 -fill None ^
-draw "path 'M0,0 L99,0 M99,1 L0,98 M0,99 L199,99'" ^
linesBug0.png
But when I adjust the coordinates of the middle line, so the first and second end where the next line starts, it draws only one line:
Code: Select all
%IM%convert -size 200x100 xc: -stroke #000 -fill None ^
-draw "path 'M0,0 L99,0 M99,0 L0,99 M0,99 L199,99'" ^
linesBug1.png
A workaround is to draw the lines in a different order:
Code: Select all
%IM%convert -size 200x100 xc: -stroke #000 -fill None ^
-draw "path 'M99,0 L0,99 M0,0 L99,0 M0,99 L199,99'" ^
linesBug2.png
This seems to be a generic problem: when one line ends where the next starts, the second line is not drawn.
Tested with v6.9.0-0 under Windows 8.1.