diff --git a/src/engraving/rendering/score/chordlayout.cpp b/src/engraving/rendering/score/chordlayout.cpp index 3fe64c2a257b1..4b9640169c4b2 100644 --- a/src/engraving/rendering/score/chordlayout.cpp +++ b/src/engraving/rendering/score/chordlayout.cpp @@ -2726,7 +2726,8 @@ void ChordLayout::appendGraceNotes(Chord* chord) //Attach graceNotesAfter of this chord to the *following* segment if (!gna.empty()) { Segment* followingSeg = measure->tick2segment(segment->tick() + chord->actualTicks(), SegmentType::All); - while (followingSeg && !followingSeg->hasElements(staff2track(staffIdx), staff2track(staffIdx) + 3)) { + while (followingSeg + && (!followingSeg->hasElements(staff2track(staffIdx), staff2track(staffIdx) + 3) || followingSeg->isTimeTickType())) { // If there is nothing on this staff, go to next segment followingSeg = followingSeg->next(); }