path segments are lost
Bug #395647 reported by
Frederik Elwert
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Scour |
Fix Released
|
Undecided
|
codedread |
Bug Description
When cleaning up path data, the last segment is lost in special cases. This bug is introduced in scour 0.14, so I guess it’s related to the attempt to remove the last segment whith closed paths. But in some cases, the path isn’t closed after the cleanup.
I noticed this behaviour with a cairo generated file. Cairo creates a bit odd paths with a M command after the path is closed by Z. Maybe this causes the problem.
Original path:
M 601.441406 216 L 649.480469 216 L 649.480469 273.601562 L 601.441406 273.601562 Z M 601.441406 216
Cleaned path with lost segment:
M601.44,
To post a comment you must log in.
Hi Frederik,
I appreciate this bug - can you possibly send me a file where the path generated by scour actually causes a visual problem?
The example you have given shows the converted path as being identical except for missing the closepath ('Z') segment. Scour 0.14 was simply dropping the Z segment (closepath) and this didn't cause a problem in Firefox, Opera or Safari.
I have worked out a modified version of scour that no longer drops the closepath commands. I have checked this in as revision 105. Can you please test it?
Thanks,
Jeff