fix #16917: add to selection is rather invert selection - add to selection now add elements only if they are not already present in selection to avoid the inversion

This commit is contained in:
lasconic 2012-06-20 11:07:06 +02:00
parent 9d524310dc
commit a208427665

View file

@ -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);
}
}
}
}