fix #245731: Slurs not obeying voices of Selection filter

This commit is contained in:
lasconic 2017-08-18 19:05:50 +02:00
parent b5f027afa7
commit 51c3e4395c
2 changed files with 4 additions and 0 deletions

View file

@ -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) {

View file

@ -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;