Repeats display with space when clef is removed
When I write lead sheets I like to uncheck "create clef for all systems" and "create key signature for all systems" (I even have a style saved). This gives a layout problem for repeats, though:
Naturally I would prefer it if the repeat was flush with the start of the system.
Comments
Coud you file an issue? Looks like a pretty simple change.
BTW, instead of loading a style, consider using a template. They are easy to create in 2.0 (just save a score to your Templates folder) and even easier to use (select from the list when creating a new score).
In reply to Coud you file an issue? by Marc Sabatella
#64911: Repeats display with space when clef is removed
Thanks for the template tip BTW, will try that.
Even without the 'winged tips'? It happened to me sometime that the 'tips' on repeat measure lines caused spacing problems (but I forgot the details, unfortunately).
In reply to Even without the 'winged by Miwarre
Does this answer you question?
In reply to Even without the 'winged by Miwarre
The layout code always adds 0.5sp padding before a start repeat bar:
https://github.com/musescore/MuseScore/blob/8ff1ded811dddfaaa580ee05490…
(and corresponding code in measure.cpp).
I will try to change this to only do so if necessary (ie, a clef is present).
In reply to The layout code always adds by Marc Sabatella
I thought it was something like that. Actually, you saying that showed me the workaround: do a manual horizontal offset.
In reply to The layout code always adds by Marc Sabatella
Yes, although if/when I get this fixed, that offset will need to be reset or your repeats will be hanging off the the left.
I thought it would be as simple as changing that line, but it isn't. For some reason even if I skip adding the space there, it gets added elsewhere. Still trying to figure out why.