Skip to content

Fix cue note layout#32506

Open
miiizen wants to merge 1 commit intomusescore:masterfrom
miiizen:fixCueNoteLayout
Open

Fix cue note layout#32506
miiizen wants to merge 1 commit intomusescore:masterfrom
miiizen:fixCueNoteLayout

Conversation

@miiizen
Copy link
Contributor

@miiizen miiizen commented Mar 5, 2026

Resolves: incorrect position of cue note on first layout

@miiizen miiizen requested a review from mike-spa March 5, 2026 14:07
@miiizen miiizen added the vtests This PR produces approved changes to vtest results label Mar 5, 2026
Ornament* ornament = c->findOrnament();
if (ornament && ornament->showCueNote()) {
TLayout::layoutOrnamentCueNote(ornament, ctx);
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you explain why it needs additional layout in PageLayout and SystemLayout?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PageLayout call was for cross staff beam situations, but after removing it I can't find any issues.

We need the SystemLayout call because otherwise the only layout call is in MeasureLayout::computePreSpacingItems and it's never added to the skyline.
Screenshot 2026-03-06 at 11 35 47

Ornament* ornament = c->findOrnament();
if (ornament && ornament->showCueNote()) {
TLayout::layoutOrnamentCueNote(ornament, ctx);
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you explain why it needs additional layout in PageLayout and SystemLayout?

These should be calculated after articulations so we can avoid them
@miiizen miiizen force-pushed the fixCueNoteLayout branch from 4bac7ae to 1d4266b Compare March 6, 2026 11:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

vtests This PR produces approved changes to vtest results

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants