Insert results of boolean operations above the first path.

This commit is contained in:
Jürg Lehni 2015-01-04 21:59:31 +01:00
parent 9f0a774fd0
commit 7e80e19e32

View file

@ -169,12 +169,9 @@ PathItem.inject(new function() {
chain[j].segment._winding = winding;
}
// Trace closed contours and insert them into the result.
var result = new CompoundPath();
var result = new CompoundPath(Item.NO_INSERT);
result.insertAbove(path1);
result.addChildren(tracePaths(segments, operator), true);
// Delete the proxies
_path1.remove();
if (_path2)
_path2.remove();
// See if the CompoundPath can be reduced to just a simple Path.
result = result.reduce();
// Copy over the left-hand item's style and we're done.