Skip to content

Commit

Permalink
fix #42521: don't include volta in range select / copy
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcSabatella committed Dec 29, 2014
1 parent 8f17b62 commit 626e35f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libmscore/scorefile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1376,6 +1376,10 @@ void Score::writeSegments(Xml& xml, int strack, int etrack,
if (s->generated() || !xml.canWrite(s))
continue;

// don't write voltas to clipboard
if (clip && s->type() == Element::Type::VOLTA)
continue;

if (s->track() == track) {
bool end = false;
if (s->anchor() == Spanner::Anchor::CHORD || s->anchor() == Spanner::Anchor::NOTE)
Expand Down
3 changes: 3 additions & 0 deletions libmscore/select.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,9 @@ void Selection::updateSelectedElements()
// ignore spanners belonging to other tracks
if (sp->track() < startTrack || sp->track() >= endTrack)
continue;
// ignore voltas
if (sp->type() == Element::Type::VOLTA)
continue;
if (sp->type() == Element::Type::SLUR) {
if ((sp->tick() >= stick && sp->tick() < etick) || (sp->tick2() >= stick && sp->tick2() < etick))
if (canSelect(sp->startCR()) && canSelect(sp->endCR()))
Expand Down

0 comments on commit 626e35f

Please sign in to comment.