Skip to content

Commit

Permalink
fix #266205: do not deselect elements in Score::selectAdd
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrio95 committed Oct 26, 2018
1 parent 6dbff17 commit 11dfe3f
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions libmscore/score.cpp
Expand Up @@ -2832,15 +2832,12 @@ void Score::selectAdd(Element* e)
_selection.updateSelectedElements();
}
}
else { // None or List
else if (!_selection.elements().contains(e)) {
addRefresh(e->abbox());
if (_selection.elements().contains(e))
_selection.remove(e);
else {
selState = SelState::LIST;
_selection.add(e);
}
selState = SelState::LIST;
_selection.add(e);
}

_selection.setState(selState);
}

Expand Down

0 comments on commit 11dfe3f

Please sign in to comment.