Skip to content

Commit

Permalink
Update grace notes
Browse files Browse the repository at this point in the history
  • Loading branch information
miiizen committed Jan 9, 2024
1 parent 89e3698 commit 6af35c5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/engraving/rendering/dev/measurelayout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1599,6 +1599,7 @@ void MeasureLayout::layoutCrossStaff(MeasureBase* mb, LayoutContext& ctx)
}
}
}
ChordLayout::updateGraceNotes(m, ctx);
}

void MeasureLayout::barLinesSetSpan(Segment* seg, LayoutContext& ctx)
Expand Down
6 changes: 6 additions & 0 deletions src/engraving/rendering/dev/tlayout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2852,6 +2852,12 @@ void TLayout::layoutGraceNotesGroup(GraceNotesGroup* item, LayoutContext& ctx)

item->setPos(xPos, 0.0);

for (Chord* gn : *item) {
if (gn->beam() && gn->beam()->elements().front() == gn) {
TLayout::layoutBeam(gn->beam(), ctx);
}
}

if (isTabStaff) {
ChordLayout::layoutStem(parentChord, ctx);
}
Expand Down

0 comments on commit 6af35c5

Please sign in to comment.