Skip to content

Commit 05cd10f

Browse files
committed
Fix typo, including compatibility check
1 parent f1a7e18 commit 05cd10f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/engraving/style/style.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,8 @@ void MStyle::read(XmlReader& e, compat::ReadChordListHook* readChordListHook)
328328
set(Sid::dontHideStavesInFirstSystem, e.readBool());
329329
} else if (tag == "beamDistance") { // beamDistance maps to useWideBeams in 4.0
330330
set(Sid::useWideBeams, e.readDouble() > 0.75);
331+
} else if (tag == "pedalListStyle") { // pre-3.6.3/4.0 typo
332+
set(Sid::pedalLineStyle, e.readInt());
331333
} else if (!readProperties(e)) {
332334
e.unknown();
333335
}

src/engraving/style/styledef.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ const std::array<StyleDef::StyleValue, size_t(Sid::STYLES)> StyleDef::styleValue
264264
{ Sid::pedalPosAbove, "pedalPosAbove", PointF(.0, -1) },
265265
{ Sid::pedalPosBelow, "pedalPosBelow", PointF(.0, 2.5) },
266266
{ Sid::pedalLineWidth, "pedalLineWidth", Spatium(0.11) },
267-
{ Sid::pedalLineStyle, "pedalListStyle", PropertyValue(LineType::SOLID) },
267+
{ Sid::pedalLineStyle, "pedalLineStyle", PropertyValue(LineType::SOLID) },
268268
{ Sid::pedalDashLineLen, "pedalDashLineLen", 4.0 },
269269
{ Sid::pedalDashGapLen, "pedalDashGapLen", 4.0 },
270270
{ Sid::pedalHookHeight, "pedalHookHeight", Spatium(-1.2) },

0 commit comments

Comments
 (0)