Difference loses path segments depending on the sequence the paths were selected
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
New
|
Undecided
|
Unassigned |
Bug Description
Using inkscape 0.45 r10040 on both Win XP and Win 7 prof.
I found out the expensive way that inkscape has probably a but in the path Difference tool. I expect it to cut an upper path from an lower one.
Which it does when I select the lower path first and then the upper as the second. But it gives a different result when I select them the other way round! In my opinion it should not make a difference in which order the elements were selected.
The attached file shows the behaviour: Select the red path first, then the white one and click Path/Difference. The result looks the same like before. Undo this change and do it again, the other way round: Select the white area, add the red rectangle, click Path/Difference. The result changes, the white map loses all the islands not connected to the main mass. No idea why this happens like this.
tags: |
added: boolops removed: difference path sequence |
I found out this behaviour is at least affected by the filling rules (evenodd/nonzero) of the used paths: Changing the filling rule of the bottom element will make the error with path/difference disappear IN THIS CASE.
Another example shows that it has probably nothing to do with the filling rules and the complexity of the paths used:
1) Click the left black box, shift-click blue rectangle, press ctrl-minus and everything is as expected.
2) Click the right black box, shift-click blue rectangle, press ctrl-minus and the small triangle is missing.
Path/Difference works well with the left box but not with the right one. Although they are both "ovenodd" while the bottom layer is the same "nonzero" all the time.