Skip to content

Commit

Permalink
fix #39751: selection / deletion of chord symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcSabatella committed Nov 23, 2014
1 parent 5382ede commit 305a7b1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
3 changes: 3 additions & 0 deletions libmscore/edit.cpp
Expand Up @@ -1791,6 +1791,9 @@ void Score::cmdDeleteSelection()
continue;
}
foreach (Element* annotation, s->annotations()) {
// skip if not included in selection (eg, filter)
if (!selectionFilter().canSelect(annotation))
continue;
if (!annotation->systemFlag() && annotation->track() == track)
undoRemoveElement(annotation);
}
Expand Down
14 changes: 7 additions & 7 deletions libmscore/select.cpp
Expand Up @@ -458,6 +458,13 @@ qDebug("updateSelectedElements");
for (Segment* s = _startSegment; s && (s != _endSegment); s = s->next1MM()) {
if (s->segmentType() == Segment::Type::EndBarLine) // do not select end bar line
continue;
foreach(Element* e, s->annotations()) {
if (e->track() != st)
continue;
if (e->systemFlag()) //exclude system text
continue;
appendFiltered(e);
}
Element* e = s->element(st);
if (!e)
continue;
Expand All @@ -483,13 +490,6 @@ qDebug("updateSelectedElements");
else {
appendFiltered(e);
}
foreach(Element* e, s->annotations()) {
if (e->track() < startTrack || e->track() >= endTrack)
continue;
if (e->systemFlag()) //exclude system text
continue;
appendFiltered(e);
}
}
}
int stick = startSegment()->tick();
Expand Down

0 comments on commit 305a7b1

Please sign in to comment.