Skip to content

Commit

Permalink
fix #98761: Deselecting a staff not possible via shift +up/down
Browse files Browse the repository at this point in the history
  • Loading branch information
lasconic committed Feb 18, 2016
1 parent f4e988a commit d474f71
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions libmscore/select.cpp
Expand Up @@ -1183,11 +1183,18 @@ void Selection::extendRangeSelection(ChordRest* cr)
void Selection::extendRangeSelection(Segment* seg, Segment* segAfter, int staffIdx, int tick, int etick)
{
bool activeIsFirst = false;
int activeStaff = _activeTrack / VOICES;

if (staffIdx < _staffStart)
_staffStart = staffIdx;
else if (staffIdx >= _staffEnd)
_staffEnd = staffIdx + 1;
else if (_staffEnd - _staffStart > 1) { // at least 2 staff selected
if (staffIdx == _staffStart + 1 && activeStaff == _staffStart) // going down
_staffStart = staffIdx;
else if (staffIdx == _staffEnd - 2 && activeStaff == _staffEnd - 1) // going up
_staffEnd = staffIdx + 1;
}

if (tick < tickStart()) {
_startSegment = seg;
Expand Down

0 comments on commit d474f71

Please sign in to comment.