Skip to content

Commit

Permalink
select system text (tempo) in range selection
Browse files Browse the repository at this point in the history
  • Loading branch information
wschweer committed Apr 19, 2016
1 parent 07e41cb commit b022418
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions libmscore/select.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -460,29 +460,29 @@ void Selection::updateSelectedElements()
if (!canSelectVoice(st))
continue;
for (Segment* s = _startSegment; s && (s != _endSegment); s = s->next1MM()) {
if (s->segmentType() == Segment::Type::EndBarLine) // do not select end bar line
if (s->isEndBarLineType()) // do not select end bar line
continue;
foreach(Element* e, s->annotations()) {
for (Element* e : s->annotations()) {
if (e->track() != st)
continue;
if (e->systemFlag()) //exclude system text
continue;
// if (e->systemFlag()) //exclude system text // ws: why?
// continue;
appendFiltered(e);
}
Element* e = s->element(st);
if (!e || e->generated() || e->type() == Element::Type::TIMESIG || e->type() == Element::Type::KEYSIG)
continue;
if (e->isChordRest()) {
ChordRest* cr = static_cast<ChordRest*>(e);
ChordRest* cr = toChordRest(e);
for (Element* e : cr->lyricsList()) {
if (e)
appendFiltered(e);
}
for (Articulation* art : cr->articulations())
appendFiltered(art);
}
if (e->type() == Element::Type::CHORD) {
Chord* chord = static_cast<Chord*>(e);
if (e->isChord()) {
Chord* chord = toChord(e);
for (Chord* graceNote : chord->graceNotes())
if (canSelect(graceNote)) appendChord(graceNote);
appendChord(chord);
Expand Down Expand Up @@ -1173,13 +1173,13 @@ QList<Note*> Selection::uniqueNotes(int track) const

void Selection::extendRangeSelection(ChordRest* cr)
{
extendRangeSelection(cr->segment(),
cr->nextSegmentAfterCR(Segment::Type::ChordRest
| Segment::Type::EndBarLine
| Segment::Type::Clef),
cr->staffIdx(),
cr->tick(),
cr->tick());
extendRangeSelection(cr->segment(),
cr->nextSegmentAfterCR(Segment::Type::ChordRest
| Segment::Type::EndBarLine
| Segment::Type::Clef),
cr->staffIdx(),
cr->tick(),
cr->tick());
}

//---------------------------------------------------------
Expand Down

0 comments on commit b022418

Please sign in to comment.