Skip to content

Commit

Permalink
Fixed missing offset property default
Browse files Browse the repository at this point in the history
  • Loading branch information
bakajikara committed Jul 5, 2023
1 parent ed403b2 commit 31d22f2
Show file tree
Hide file tree
Showing 11 changed files with 7 additions and 8 deletions.
1 change: 1 addition & 0 deletions src/engraving/libmscore/letring.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ PropertyValue LetRing::propertyDefault(Pid propertyId) const
case Pid::LINE_VISIBLE:
return true;

case Pid::BEGIN_TEXT_OFFSET:
case Pid::CONTINUE_TEXT_OFFSET:
case Pid::END_TEXT_OFFSET:
return PropertyValue::fromValue(PointF(0, 0));
Expand Down
1 change: 1 addition & 0 deletions src/engraving/libmscore/palmmute.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ PropertyValue PalmMute::propertyDefault(Pid propertyId) const
case Pid::LINE_VISIBLE:
return true;

case Pid::BEGIN_TEXT_OFFSET:
case Pid::CONTINUE_TEXT_OFFSET:
case Pid::END_TEXT_OFFSET:
return PropertyValue::fromValue(PointF(0, 0));
Expand Down
5 changes: 5 additions & 0 deletions src/engraving/libmscore/pedal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,11 @@ engraving::PropertyValue Pedal::propertyDefault(Pid propertyId) const
case Pid::END_TEXT_PLACE:
return TextPlace::LEFT;

case Pid::BEGIN_TEXT_OFFSET:
case Pid::CONTINUE_TEXT_OFFSET:
case Pid::END_TEXT_OFFSET:
return PropertyValue::fromValue(PointF(0, 0));

case Pid::BEGIN_HOOK_TYPE:
case Pid::END_HOOK_TYPE:
return HookType::NONE;
Expand Down
1 change: 0 additions & 1 deletion src/importexport/guitarpro/tests/data/let-ring.gp-ref.mscx
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@
</Tempo>
<Spanner type="LetRing">
<LetRing>
<beginTextOffset x="0" y="0"/>
</LetRing>
<next>
<location>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@
</Dynamic>
<Spanner type="LetRing">
<LetRing>
<beginTextOffset x="0" y="0"/>
</LetRing>
<next>
<location>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@
</Dynamic>
<Spanner type="LetRing">
<LetRing>
<beginTextOffset x="0" y="0"/>
</LetRing>
<next>
<location>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@
</Tempo>
<Spanner type="LetRing">
<LetRing>
<beginTextOffset x="0" y="0"/>
</LetRing>
<next>
<location>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@
</Tempo>
<Spanner type="PalmMute">
<PalmMute>
<beginTextOffset x="0" y="0"/>
</PalmMute>
<next>
<location>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@
</Dynamic>
<Spanner type="PalmMute">
<PalmMute>
<beginTextOffset x="0" y="0"/>
</PalmMute>
<next>
<location>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@
</Dynamic>
<Spanner type="PalmMute">
<PalmMute>
<beginTextOffset x="0" y="0"/>
</PalmMute>
<next>
<location>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@
</Tempo>
<Spanner type="PalmMute">
<PalmMute>
<beginTextOffset x="0" y="0"/>
</PalmMute>
<next>
<location>
Expand Down

0 comments on commit 31d22f2

Please sign in to comment.