Skip to content

Commit

Permalink
Merge pull request #2042 from MarcSabatella/62961-multi-hairpin
Browse files Browse the repository at this point in the history
fix #62961: multiple hairpins added on list selection
  • Loading branch information
lasconic committed Jun 4, 2015
2 parents e0c4c66 + 3571429 commit 10a72eb
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 10a72eb

Please sign in to comment.