Skip to content

Commit

Permalink
Manually merged #6151 to master
Browse files Browse the repository at this point in the history
  • Loading branch information
anatoly-os committed Jul 22, 2020
1 parent 914d306 commit f91c94e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion libmscore/measure.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1439,7 +1439,11 @@ Element* Measure::drop(EditData& data)
firstStaff++;
}
Selection sel = score()->selection();
score()->undoAddBracket(staff, level, b->bracketType(), sel.staffEnd() - sel.staffStart());
if (sel.isRange()) {
score()->undoAddBracket(staff, level, b->bracketType(), sel.staffEnd() - sel.staffStart());
} else {
score()->undoAddBracket(staff, level, b->bracketType(), 1);
}
delete b;
}
break;
Expand Down

0 comments on commit f91c94e

Please sign in to comment.