Loading an MSS file that changes the default style version doens't apply new defaults until reload, potentially changing some settings
Reported version
3.6
Type
Functional
Frequency
Once
Severity
S4 - Minor
Reproducibility
Always
Status
active
Regression
No
Workaround
Yes
Project
OS: Windows 10 (10.0), Arch.: x86_64, MuseScore version (64-bit): 3.6.2.548021803, revision: 3224f34
- Open the attached 2.3.2 file. Check all the boxes in the opening dialog.
- Now import the attached style file (.mss).
Expected/Actual result: No indent on the first system. - Save, close and reload the file.
Expected result: No indent on first system.
Actual result: An indent appears on the first system, though it is not specified in the style file.
Attachment | Size |
---|---|
indent_issue.mscz | 24.54 KB |
ms3_updated.mss | 60.53 KB |
Comments
But it needs to be specified in the style file, as every non-default option needs to be there
Question is why at step 2 that is not the case already
Actually it is set (to off):
<enableIndentationOnFirstSystem>0</enableIndentationOnFirstSystem>
So indeed step 3 is showing an issue
I can't reproduce it though (not with my one mss file that also explicitly disables that indent)
But with your's. Strange. Check/compare with mine
The MSS file contains explicit tags marking the file as not pre-3.6 any more, so loading it causes it to be marked as 3.6. Hence it then adopts 3.6 defaults on reload. And yes, should have done so originally.
Workaround is to change those tags in your MSS file to make it clear you want to preserve the pre-3.6 defaults (and specifiy which defaults you want; e.g., 206 is probably what you want).
I suspect https://github.com/musescore/MuseScore/pull/7441, or something based on this, will fix it to display the propert defaults immediately on loading the MSS. Only reason I hedge is that the PR is just about the defaultsVersion tag, not the use_Pre_3_6_defaults tag. If they aren't in agreement, who knows what might happen.
Well, that PR is in 3.6.2 already
Explains though why my mss file works
Indeed, in which case I'm a bit confused.
But still, what's clear if the MSS file does change the score to 3.6 defaults, and that means this clobbers the turning off of first system indent. Probably this could be handled better. I was thinking maybe moving the defaultsVersion line of the MSS file to the top of the file would help, but it doesn't.