musescore / MuseScore

MuseScore is an open source and free music notation software. For support, contribution, bug reports, visit MuseScore.org. Fork and make pull requests!
https://musescore.org
Other
11.91k stars 2.57k forks source link

Repeated measures not rendered properly in PDF export when they are split at end of line #23443

Open skdonnelly opened 3 weeks ago

skdonnelly commented 3 weeks ago

Issue type

Import/export issue

Bug description

No response

Steps to reproduce

  1. use the "Repeat last 2 measures" symbol in a score, you need to have one that ends up being split by the end of a line
  2. the "2" and the symbol will be hanging off the edge of the line, and there will be a blank measure on the next line The two measures should be kept together

Screenshots/Screen recordings

image

MuseScore Version

MuseScore Studio version (64-bit): 4.3.2-241630831, revision: github-musescore-musescore-22b46f2

Regression

I don't know

Operating system

OS: Windows 10 Version 2009 or later, Arch.: x86_64,

Additional context

No response

cbjeukendrup commented 3 weeks ago

This has nothing to do with pdf export, but probably rather with the fact that those "keep measures on same system" elements are not always added to part scores when adding a measure repeat in the full score, or vice versa.

The solution would be to get rid of the existence of the "keep measures on same system" element and enhance the layout algorithm to detect measure repeats so that those measures are kept together anyway.