Skip to content

Commit

Permalink
Merge pull request musescore#24994 from miiizen/graceNoteAnchor
Browse files Browse the repository at this point in the history
Don't attach grace notes group to time tick segment
  • Loading branch information
mike-spa authored Oct 1, 2024
2 parents bf86b8e + cfb4c40 commit 0512822
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/engraving/rendering/score/chordlayout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 0512822

Please sign in to comment.