From cfb4c40e02e111a942222a5e16930359c09af536 Mon Sep 17 00:00:00 2001 From: James Mizen Date: Tue, 1 Oct 2024 11:01:11 +0100 Subject: [PATCH] Don't attach grace notes aftrer to time tick segment --- src/engraving/rendering/score/chordlayout.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(); }