Skip to content

Commit

Permalink
fix #16917: add to selection is rather invert selection - add to sele…
Browse files Browse the repository at this point in the history
…ction now add elements only if they are not already present in selection to avoid the inversion
  • Loading branch information
lasconic committed Jun 20, 2012
1 parent 9d52431 commit a208427
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions mscore/musescore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3863,8 +3863,11 @@ void MuseScore::selectElementDialog(Element* e)
score->select(ee, SELECT_ADD, 0);
}
else if (sd.doAdd()) {
foreach(Element* ee, pattern.el)
score->select(ee, SELECT_ADD, 0);
QList<Element*> sl(score->selection().elements());
foreach(Element* ee, pattern.el) {
if(!sl.contains(ee))
score->select(ee, SELECT_ADD, 0);
}
}
}
}
Expand Down

0 comments on commit a208427

Please sign in to comment.