Skip to content

Fix scaling and position of end of line courtesies#32009

Merged
miiizen merged 1 commit into
musescore:masterfrom
miiizen:31442-courtesySize
Feb 4, 2026
Merged

Fix scaling and position of end of line courtesies#32009
miiizen merged 1 commit into
musescore:masterfrom
miiizen:31442-courtesySize

Conversation

@miiizen

@miiizen miiizen commented Feb 3, 2026

Copy link
Copy Markdown
Contributor

Resolves: #31442

When getting the staff type of items, we should always use the tick at the start of their measure. If we don't, StaffTypeList::staffType will round up to the next bar. Staff type changes can only occur at measure boundaries, so this should be safe.

@mike-spa mike-spa left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We have often used a quasi-hack for this of calling the function on tick() - Fraction::eps i.e. one bit before the current tick, which resolves these cases where the tick coincides with the start of next measure. But this is a much better approach.

@zacjansheski

Copy link
Copy Markdown
Contributor

Tested on MacOS Tahoe 26.2, Windows 11, Ubuntu 22.04.3. Approved
#31442 FIXED

Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Feb 4, 2026
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Feb 4, 2026
@miiizen
miiizen merged commit cb9b045 into musescore:master Feb 4, 2026
11 of 12 checks passed
@miiizen miiizen mentioned this pull request Feb 16, 2026
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Feb 20, 2026
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Jul 6, 2026
Jojo-Schmitz added a commit to Jojo-Schmitz/MuseScore that referenced this pull request Jul 6, 2026
Backport of musescore#32009

Co-Authored-By: James Mizen <26510874+miiizen@users.noreply.github.com>
Jojo-Schmitz added a commit to Jojo-Schmitz/MuseScore that referenced this pull request Jul 7, 2026
Backport of musescore#32009

Co-Authored-By: James Mizen <26510874+miiizen@users.noreply.github.com>
Jojo-Schmitz added a commit to Jojo-Schmitz/MuseScore that referenced this pull request Jul 7, 2026
Backport of musescore#32009

Co-Authored-By: James Mizen <26510874+miiizen@users.noreply.github.com>
Jojo-Schmitz added a commit to Jojo-Schmitz/MuseScore that referenced this pull request Jul 7, 2026
Backport of musescore#32009

Co-Authored-By: James Mizen <26510874+miiizen@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Courtesy clef and signatures have wrong size, if stafftype size changes in next measure

3 participants