Have boolean operation result inherit styles from the left-hand item in the operation.

Closes #445.
This commit is contained in:
Jürg Lehni 2014-04-07 12:18:04 +02:00
parent 8edcf3b219
commit 66b1087d33

View file

@ -147,8 +147,11 @@ PathItem.inject(new function() {
_path1.remove();
if (_path2)
_path2.remove();
// And then, we are done.
return result.reduce();
// 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.
result.setStyle(path1._style);
return result;
}
/**