"Style for part" preference does not take effect until restart

• Jul 17, 2020 - 20:27
Reported version
3.4
Priority
P2 - Medium
Type
Functional
Frequency
Once
Severity
S3 - Major
Reproducibility
Always
Status
active
Regression
No
Workaround
Yes
Project

When I auto-generate the parts for a score, the staff spacing isn't the staff spacing I specified in my style for part save. It loads as 1mm when it should be bigger. Also, it loads the style for the score and not the part when I click "Reset Style". Attached is my saves for the styles. JazzSmallStaffForFullScore.mss Jazz.mss


Comments

Title Style for part loaded as having too small of a staff "Style for part" preference does not take effect until restart
Regression Yes No
Reported version 3.x-dev 3.5
Workaround No Yes

Actually, it turns out the problem is only right after you change the "Style for part" setting - it does not take effect until a restart. The same actually was true of 3.4.2 (I just tested). So, not a regression or a showstopper for 3.5, but definitely still a bug worth fixing. Shouldn't actually be particularly hard.

Priority P2 - Medium

There's a function MScore::defaultStyleForPartsHasChanged() that is empty except for a TODO comment. Probably we just need to delete the old _defaultStyleForParts and copy over the code from MScore::init() to reinitialize it.