Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Measure numbers are sometimes incorrect #16354

Closed
Panogen opened this issue Feb 13, 2023 · 1 comment · Fixed by #16452
Closed

Measure numbers are sometimes incorrect #16354

Panogen opened this issue Feb 13, 2023 · 1 comment · Fixed by #16452
Assignees
Labels
engraving P2 Priority: Medium

Comments

@Panogen
Copy link

Panogen commented Feb 13, 2023

This is a strange bug in Musescore 4 in which a measure sometimes doesn't get counted in the measure numbers:
image

When I deleted the line break at the end of the actual measure 12 and then replaced it, the problem went away:
image
image

But when I saved and reloaded the file, the problem returned.
image

I initially thought it was because of the combination of layout elements used on measures 11 and 12. But when I tried to reproduce the issue on a blank document, I couldn't. It seems to be specific to this file, and I don't know exactly the cause. Here is the file in question.

OS: Windows 11
MuseScore version 4.0.1

@cbjeukendrup cbjeukendrup changed the title Measure number issue Measure numbers are sometimes incorrect Feb 13, 2023
@oktophonie oktophonie added this to To triage in MuseScore 4.1 via automation Feb 15, 2023
@oktophonie oktophonie added the P2 Priority: Medium label Feb 15, 2023
@mike-spa
Copy link
Contributor

Btw, the issue fixes itself after any relayout is triggered. It only appears at first load of a file. Anyway, here's how to reproduce it from scratch:

  1. Start from a document without any breaks or "no-break groups".
  2. Apply a no-break to two measures across a "natural" system break.

image

3. Apply a line-break to the last measure spanned by the no-break.

image

image

5. Save, close, reopen. 6. Observe wrong bar number on third system.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
engraving P2 Priority: Medium
Projects
Status: Done
MuseScore 4.1
  
Done
Development

Successfully merging a pull request may close this issue.

3 participants