Skip to content

Commit

Permalink
fix #62961: multiple hairpins added on list selection
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcSabatella committed Jun 3, 2015
1 parent 59250c6 commit 3571429
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion mscore/scoreview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4329,7 +4329,9 @@ void ScoreView::cmdAddHairpin(bool decrescendo)
_score->endCmd();
_score->startCmd();
}
else {
else if (selection.isRange() || selection.isSingle()) {
// for single staff range selection, or single selection,
// find start & end elements elements
ChordRest* cr1;
ChordRest* cr2;
_score->getSelectedChordRest2(&cr1, &cr2);
Expand Down Expand Up @@ -4357,6 +4359,11 @@ void ScoreView::cmdAddHairpin(bool decrescendo)
_score->endCmd();
}
}
else {
// do not attempt for list selection
// or we will keep adding hairpins to the same chordrests
return;
}
}

//---------------------------------------------------------
Expand Down

0 comments on commit 3571429

Please sign in to comment.