mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-07 13:22:07 -05:00
Clone the color when calling Color#convert with the same color type.
This commit is contained in:
parent
e5034a5a76
commit
f83d16906c
1 changed files with 1 additions and 1 deletions
|
@ -209,7 +209,7 @@ var Color = this.Color = Base.extend(new function() {
|
|||
|
||||
convert: function(type) {
|
||||
return this._colorType == type
|
||||
? this
|
||||
? this.clone()
|
||||
: converters[this._colorType + '-' + type](this);
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue