From 7e80e19e32347d008b560e2898c1281edf9b0db1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ju=CC=88rg=20Lehni?= Date: Sun, 4 Jan 2015 21:59:31 +0100 Subject: [PATCH] Insert results of boolean operations above the first path. --- src/path/PathItem.Boolean.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/path/PathItem.Boolean.js b/src/path/PathItem.Boolean.js index 07aca43e..aa7ac8c9 100644 --- a/src/path/PathItem.Boolean.js +++ b/src/path/PathItem.Boolean.js @@ -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.