Skip to content

Commit

Permalink
fix #245731: Slurs not obeying voices of Selection filter
Browse files Browse the repository at this point in the history
  • Loading branch information
lasconic committed Aug 18, 2017
1 parent b5f027a commit 51c3e43
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libmscore/edit.cpp
Expand Up @@ -1859,6 +1859,8 @@ void Score::cmdDeleteSelection()
Spanner* sp = i.value;
if (sp->isVolta())
continue;
if (!selectionFilter().canSelectVoice(sp->track()))
continue;
if (sp->track() >= track1 && sp->track() < track2) {
if (sp->tick() >= stick1 && sp->tick() < stick2
&& sp->tick2() >= stick1 && sp->tick2() < stick2) {
Expand Down
2 changes: 2 additions & 0 deletions libmscore/select.cpp
Expand Up @@ -509,6 +509,8 @@ void Selection::updateSelectedElements()
// ignore spanners belonging to other tracks
if (sp->track() < startTrack || sp->track() >= endTrack)
continue;
if (!canSelectVoice(sp->track()))
continue;
// ignore voltas
if (sp->type() == ElementType::VOLTA)
continue;
Expand Down

0 comments on commit 51c3e43

Please sign in to comment.