diff --git a/libmscore/select.cpp b/libmscore/select.cpp index 927993254cdde..6cca2fcad0746 100644 --- a/libmscore/select.cpp +++ b/libmscore/select.cpp @@ -515,6 +515,9 @@ QList Selection::noteList(int selTrack) const continue; Chord* c = static_cast(e); nl.append(c->notes()); + for (Chord* g : c->graceNotes()) { + nl.append(g->notes()); + } } } } diff --git a/libmscore/transpose.cpp b/libmscore/transpose.cpp index 56bf5553e4fe3..a7875bf183f4b 100644 --- a/libmscore/transpose.cpp +++ b/libmscore/transpose.cpp @@ -355,12 +355,20 @@ void Score::transpose(int mode, TransposeDirection direction, int transposeKey, continue; Chord* chord = static_cast(e); QList 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()) {