Leading space adjustment for generated elements lost on save/reload
Reported version
3.x-dev
Priority
P1 - High
Type
Functional
Severity
S3 - Major
Status
closed
Regression
No
Workaround
No
Project
2.0.3 / Win 7
See attached file. Except for the clef/key signature at the beginning of the score, any changes the user makes to the leading/trailing space of clefs or key signatures is lost when the score is closed. Time signatures seem to be unaffected.
Attachment | Size |
---|---|
leading_trailing_space.mscz | 25.04 KB |
Fix version
3.1.0
Comments
This may be analogous to the fact that setting elements which are generated 'on-the-fly' (such as clefs, key sigs, and staff names) as 'invisible' isn't saved. I have had that problem with scores requiring an incipit before the main part of the music begins. I create the incipit, insert a frame and a section break, and then start the main score. Because of the section break, the long instrument names appear again where I don't want them to. Setting them as 'invisible' only lasts until the score is closed and reopened. To print properly, I have to export to PDF before the score is closed and reopened.
My understanding is that because MuseScore's automatic layout algorithm generates these elements for the start of each new line as that line is defined it is not possible for the program to respect manual changes to the 'parent' element from which they are generated.
Well, visibility *is* saved, so we do have at least some of the code we need to read/write these elements. Probably just additional code needs to be added to handle other properties. Could be others too.
See also: #191221: "Hide empty staves": excess space at start of system due to transposing instrument.
Came up again at https://musescore.org/en/node/255886.
And again in https://musescore.org/en/node/258996
OS: Windows 10 (10.0), Arch.: x86_64, MuseScore version (64-bit): 3.0.3.5341, revision: e06ea8e
(trailing space is no longer a thing)
Clefs, keysigs, and barlines at least.
It does get saved if you also change some other property like offset. The issue is that changing leading space doesn't cause the element to be marked non-generated, so it is never written. Once some other property triggers the element to be marked non-generated, then the properties are written properly.
See also #279245: Stacking order, autoplace not saved for generated stems which is similar. Not sure if it makes sense to address these issues individually for each property or if it is better to find a more global solution.
https://github.com/musescore/MuseScore/pull/4843/commits
fixed here
Is this link correct?
That particular issue is not mentioned in that PR, as far as i can see
Actually https://github.com/musescore/MuseScore/pull/4844
In reply to Actually https://github.com… by Marc Sabatella
Oops my mistake, that’s the correct PR. Thanks!
Fixed in branch master, commit 1dac2a7dba
fix #139846: save leading space adjustments
Automatically closed -- issue fixed for 2 weeks with no activity.