Skip to content

Commit

Permalink
fix #47556: don't delete volta when deleting selection
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcSabatella committed Feb 13, 2015
1 parent 4eda1f6 commit c117723
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libmscore/edit.cpp
Expand Up @@ -1813,6 +1813,8 @@ void Score::cmdDeleteSelection()
int track2 = selection().staffEnd() * VOICES;
for (auto i : _spanner.findOverlapping(stick1, stick2 - 1)) {
Spanner* sp = i.value;
if (sp->type() == Element::Type::VOLTA)
continue;
if (sp->track() >= track1 && sp->track() < track2) {
if (sp->tick() >= stick1 && sp->tick() < stick2
&& sp->tick2() >= stick1 && sp->tick2() < stick2) {
Expand Down

0 comments on commit c117723

Please sign in to comment.