Skip to content

Commit

Permalink
Fix typo, including compatibility check
Browse files Browse the repository at this point in the history
Backport of #12133
  • Loading branch information
Jojo-Schmitz committed Jun 22, 2022
1 parent 756c360 commit 5b30d14
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libmscore/style.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ static const StyleType styleTypes[] {
{ Sid::pedalPosAbove, "pedalPosAbove", QPointF(.0, -1) },
{ Sid::pedalPosBelow, "pedalPosBelow", QPointF(.0, 2.5) },
{ Sid::pedalLineWidth, "pedalLineWidth", Spatium(0.11) },
{ Sid::pedalLineStyle, "pedalListStyle", QVariant(int(Qt::SolidLine)) },
{ Sid::pedalLineStyle, "pedalLineStyle", QVariant(int(Qt::SolidLine)) },
{ Sid::pedalBeginTextOffset, "pedalBeginTextOffset", QPointF(0.0, 0.15) },
{ Sid::pedalHookHeight, "pedalHookHeight", Spatium(-1.2) },
{ Sid::pedalFontFace, "pedalFontFace", "Edwin" },
Expand Down Expand Up @@ -3050,6 +3050,8 @@ void MStyle::load(XmlReader& e)
set(Sid::lyricsDashMaxLength, e.readDouble());
else if (tag == "dontHidStavesInFirstSystm") // pre-3.6.3/4.0 typo
set(Sid::dontHideStavesInFirstSystem, e.readBool());
else if (tag == "pedalListStyle") // pre-3.6.3/4.0 typo
set(Sid::pedalLineStyle, e.readInt());
else if (!readProperties(e))
e.unknown();
}
Expand Down

0 comments on commit 5b30d14

Please sign in to comment.