mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-20 22:39:50 -05:00
Copy over parent style in Item#reduce().
Only really needed for CompoundPath...
This commit is contained in:
parent
fe1035da41
commit
dcad9d44ed
1 changed files with 1 additions and 0 deletions
|
@ -1884,6 +1884,7 @@ var Item = Base.extend(Callback, /** @lends Item# */{
|
|||
if (this._children && this._children.length === 1) {
|
||||
var child = this._children[0];
|
||||
child.insertAbove(this);
|
||||
child.setStyle(this._style);
|
||||
this.remove();
|
||||
return child;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue