Fix #21725 - Glissando from grace note.

This commit is contained in:
Maurizio M. Gavioli 2015-02-26 14:15:15 +01:00
parent 96c7028896
commit 32843dcc38

View file

@ -519,6 +519,13 @@ Note* Glissando::guessInitialNote(Chord* chord)
Note* Glissando::guessFinalNote(Chord* chord)
{
// if chord parent is another chord, chord is a grace, look for final note in parent
if (chord->parent()->type() == Element::Type::CHORD)
return static_cast<Chord*>(chord->parent())->upNote();
// if parent not a segment, can't locate a target note
if (chord->parent()->type() != Element::Type::SEGMENT)
return nullptr;
int chordTrack = chord->track();
Segment* segm = chord->segment();
Part* part = chord->staff()->part();