mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-22 07:19:57 -05:00
Path#setSelected: do XOR correctly.
This commit is contained in:
parent
cf2faa14e3
commit
7867a46c35
1 changed files with 1 additions and 1 deletions
|
@ -136,7 +136,7 @@ var Path = this.Path = PathItem.extend({
|
|||
setSelected: function(selected) {
|
||||
var wasSelected = this.getSelected();
|
||||
var length = this._segments.length;
|
||||
if (wasSelected != selected && length) {
|
||||
if (!wasSelected != !selected && length) {
|
||||
var selectedItems = this._document._selectedItems;
|
||||
if (selected) {
|
||||
selectedItems.push(this);
|
||||
|
|
Loading…
Reference in a new issue