-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
base: master
Are you sure you want to change the base?
Conversation
272e4f9
to
058263c
Compare
d0abd0f
to
093a3eb
Compare
src/engraving/rw/read410/tread.cpp
Outdated
@@ -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; |
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
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?
This reverts commit 8f28568.
093a3eb
to
caf2933
Compare
Resolves: #24330
Resolves: #24899
This reverts #21758 and adds some compatibility code for reading 4.4.0-2 files & palettes.