-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[MU3] Make AutoSize default for new scores but disable it for older scores. #6948
[MU3] Make AutoSize default for new scores but disable it for older scores. #6948
Conversation
"disables" should "disable"? |
That vtest fail might be easily fixed by updating the scorefile it stems from I guess? |
e1454ae
to
26a8d5a
Compare
The vtest violation was caused by reading a 2.x file. In both |
Now, mtests fail (and macos uploading artifacts) |
26a8d5a
to
d76e0ef
Compare
The mtest was my mistake, the files got a new tag. |
yes, likely not your fault |
…ble it for older scores.
Resolves: https://trello.com/c/11WgLsL1/23-disabling-vertical-frame-enable-auto-size-is-not-saved-in-score-file
In the
VBox::VBox()
constructor, the variable_isAutoSizeEnabled
was always set totrue
for score with a version number >= 3.02. However, the default for that property isfalse
. So, when this option was switched of, the property has the default value and isn't written into the score file. Next, when reading the file, there no such property but if the score version was >= 3.02, the property was set totrue
again.This is solved by setting the default of
_isAutoSizeEnabled
totrue
. But when reading an score < 3.02, this property in set tofalse
after reading the properties inBox::read()
. Also,Box::getProperty()
will always returnfalse
for older scores.