Skip to content
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

Revert repeat marker musical symbols scale changes #24914

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

miiizen
Copy link
Contributor

@miiizen miiizen commented Sep 25, 2024

Resolves: #24330
Resolves: #24899

This reverts #21758 and adds some compatibility code for reading 4.4.0-2 files & palettes.

@oktophonie oktophonie added the vtests This PR produces approved changes to vtest results label Sep 26, 2024
@@ -1875,6 +1875,11 @@ void TRead::read(Marker* m, XmlReader& e, ReadContext& ctx)
e.unknown();
}
}
const bool needsAdjustMarkerSize = m->score()->mscVersion() == 440 && m->score()->mscoreVersion() != u"4.4.3" && !ctx.pasteMode();
const bool isDefualtSize = m->score()->style().styleD(Sid::repeatLeftFontSize) == 11.0;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

*default (small typo)

element->styleChanged();

// from 4.4.3 markers have a font size which is not the default, so this must be reset after calling style changed
if (item->isMarker() && toMarker(item)->size() == 11) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure I understand what is going on here. Using 11 and 18 like this looks a bit magic numbers to me (same for the TRead code above) as I don't know the context. They should be in a variable (or at least have an explanatory comment).
Speaking of comment: what do you mean that markers have a font size which is not the default? Shouldn't an element inserted into the score from the default palettes have default settings by definition?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
vtests This PR produces approved changes to vtest results
Projects
None yet
3 participants