Skip to content

Commit

Permalink
Fix file reading
Browse files Browse the repository at this point in the history
  • Loading branch information
miiizen committed Sep 25, 2024
1 parent 2556f13 commit 272e4f9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/engraving/rw/read410/tread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1864,6 +1864,10 @@ void TRead::read(Accidental* a, XmlReader& e, ReadContext& ctx)
void TRead::read(Marker* m, XmlReader& e, ReadContext& ctx)
{
MarkerType mt = MarkerType::SEGNO;
bool needsAdjustMarkerSize = m->score()->mscoreVersion().contains(u"4.4") && m->score()->mscoreVersion() != u"4.4.3";
if (needsAdjustMarkerSize && m->score()->style().styleD(Sid::repeatLeftFontSize) == 11.0) {
m->score()->style().set(Sid::repeatLeftFontSize, 18.0);
}

while (e.readNextStartElement()) {
const AsciiStringView tag(e.name());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
<dynamicsPosAbove x="0" y="-1.5"/>
<dynamicsPosBelow x="0" y="2.5"/>
<measureNumberPosBelow x="0" y="1"/>
<repeatLeftFontSize>18</repeatLeftFontSize>
<systemTextLineFontSize>12</systemTextLineFontSize>
<defaultsVersion>410</defaultsVersion>
<Spatium>1.74978</Spatium>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,6 @@
<dynamicsPosAbove x="0" y="-1.5"/>
<dynamicsPosBelow x="0" y="2.5"/>
<measureNumberPosBelow x="0" y="1"/>
<repeatLeftFontSize>18</repeatLeftFontSize>
<systemTextLineFontSize>12</systemTextLineFontSize>
<defaultsVersion>410</defaultsVersion>
<Spatium>1.74978</Spatium>
Expand Down

0 comments on commit 272e4f9

Please sign in to comment.