Skip to content

Commit

Permalink
fix #11661: grace notes are not part of selection
Browse files Browse the repository at this point in the history
  • Loading branch information
lasconic committed Aug 31, 2013
1 parent 6abb3a6 commit 7b5fe97
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
3 changes: 3 additions & 0 deletions libmscore/select.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,9 @@ QList<Note*> Selection::noteList(int selTrack) const
continue;
Chord* c = static_cast<Chord*>(e);
nl.append(c->notes());
for (Chord* g : c->graceNotes()) {
nl.append(g->notes());
}
}
}
}
Expand Down
10 changes: 9 additions & 1 deletion libmscore/transpose.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -355,12 +355,20 @@ void Score::transpose(int mode, TransposeDirection direction, int transposeKey,
continue;
Chord* chord = static_cast<Chord*>(e);
QList<Note*> nl = chord->notes();
foreach (Note* n, nl) {
for (Note* n : nl) {
if (mode == TRANSPOSE_DIATONICALLY)
n->transposeDiatonic(transposeInterval, trKeys, useDoubleSharpsFlats);
else
transpose(n, interval, useDoubleSharpsFlats);
}
for (Chord* g : chord->graceNotes()) {
for (Note* n : g->notes()) {
if (mode == TRANSPOSE_DIATONICALLY)
n->transposeDiatonic(transposeInterval, trKeys, useDoubleSharpsFlats);
else
transpose(n, interval, useDoubleSharpsFlats);
}
}
}
if (transposeChordNames) {
foreach (Element* e, segment->annotations()) {
Expand Down

0 comments on commit 7b5fe97

Please sign in to comment.