Skip to content

Commit

Permalink
Allow more spanners to get removed from range selection
Browse files Browse the repository at this point in the history
ottavas, pedal lines, trill lines, staff and system text lines, let ring and palm mute lines
  • Loading branch information
Jojo-Schmitz committed Sep 27, 2024
1 parent bd1dac0 commit 41627cf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libmscore/select.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -633,14 +633,14 @@ void Selection::updateSelectedElements()
// ignore voltas
if (sp->isVolta())
continue;
if (sp->isSlur() || sp->isHairpin()) {
if (sp->isSlur() || sp->isHairpin() || sp->isOttava() || sp->isPedal() || sp-> isTrill() || sp->isTextLine()|| sp->isLetRing() || sp->isPalmMute()) {
// ignore if start & end elements not calculated yet
if (!sp->startElement() || !sp->endElement())
continue;
if ((sp->tick() >= stick && sp->tick() < etick) || (sp->tick2() >= stick && sp->tick2() < etick)) {
if ((sp->tick() >= stick && sp->tick() < etick) || (sp->tick2() >= stick && sp->tick2() <= etick)) {
if (canSelect(sp->startCR()) && canSelect(sp->endCR())) {
for (auto seg : sp->spannerSegments())
appendFiltered(seg); // slur with start or end in range selection
appendFiltered(seg); // spanner with start or end in range selection
}
}
}
Expand Down

0 comments on commit 41627cf

Please sign in to comment.