Skip to content

Commit

Permalink
Fix typo in a the name of a style setting
Browse files Browse the repository at this point in the history
  • Loading branch information
Jojo-Schmitz authored and vpereverzev committed Mar 9, 2021
1 parent c6423f2 commit 89e9471
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
4 changes: 3 additions & 1 deletion libmscore/style.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ static const StyleType styleTypes[] {
{ Sid::mmRestNumberPos, "mmRestNumberPos", Spatium(-1.5) },
{ Sid::hideEmptyStaves, "hideEmptyStaves", QVariant(false) },
{ Sid::dontHideStavesInFirstSystem,
"dontHidStavesInFirstSystm", QVariant(true) },
"dontHideStavesInFirstSystem", QVariant(true) },
{ Sid::enableIndentationOnFirstSystem,
"enableIndentationOnFirstSystem", QVariant(true) },
{ Sid::firstSystemIndentationValue, "firstSystemIndentationValue", Spatium(5.0) },
Expand Down Expand Up @@ -3022,6 +3022,8 @@ void MStyle::load(XmlReader& e)
}
else if (tag == "lyricsDashMaxLegth") // pre-3.6 typo
set(Sid::lyricsDashMaxLength, e.readDouble());
else if (tag == "dontHidStavesInFirstSystm") // pre-3.6.3/4.0 typo
set(Sid::dontHideStavesInFirstSystem, e.readBool());
else if (!readProperties(e))
e.unknown();
}
Expand Down
2 changes: 1 addition & 1 deletion mtest/libmscore/compat114/style-ref.mscx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
<minEmptyMeasures>3</minEmptyMeasures>
<minMMRestWidth>3</minMMRestWidth>
<hideEmptyStaves>1</hideEmptyStaves>
<dontHidStavesInFirstSystm>0</dontHidStavesInFirstSystm>
<dontHideStavesInFirstSystem>0</dontHideStavesInFirstSystem>
<ArpeggioNoteDistance>0.7</ArpeggioNoteDistance>
<ArpeggioLineWidth>0.19</ArpeggioLineWidth>
<ArpeggioHookLen>0.9</ArpeggioHookLen>
Expand Down
2 changes: 1 addition & 1 deletion vtest/system-1.mscx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<Style>
<showMeasureNumber>0</showMeasureNumber>
<hideEmptyStaves>1</hideEmptyStaves>
<dontHidStavesInFirstSystm>0</dontHidStavesInFirstSystm>
<dontHideStavesInFirstSystem>0</dontHideStavesInFirstSystem>
<showFooter>0</showFooter>
<page-layout>
<page-height>283.465</page-height>
Expand Down
2 changes: 1 addition & 1 deletion vtest/system-2.mscx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<Style>
<showMeasureNumber>0</showMeasureNumber>
<hideEmptyStaves>1</hideEmptyStaves>
<dontHidStavesInFirstSystm>0</dontHidStavesInFirstSystm>
<dontHideStavesInFirstSystem>0</dontHideStavesInFirstSystem>
<showFooter>0</showFooter>
<page-layout>
<page-height>283.465</page-height>
Expand Down
2 changes: 1 addition & 1 deletion vtest/system-7.mscx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<maxSystemDistance>8</maxSystemDistance>
<showMeasureNumber>0</showMeasureNumber>
<hideEmptyStaves>1</hideEmptyStaves>
<dontHidStavesInFirstSystm>0</dontHidStavesInFirstSystm>
<dontHideStavesInFirstSystem>0</dontHideStavesInFirstSystem>
<showFooter>0</showFooter>
<page-layout>
<page-height>680.315</page-height>
Expand Down

0 comments on commit 89e9471

Please sign in to comment.