Skip to content

Commit

Permalink
Fixed hairpin text property default
Browse files Browse the repository at this point in the history
  • Loading branch information
bakajikara committed Jul 5, 2023
1 parent 70b94d9 commit ed403b2
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/engraving/libmscore/hairpin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -504,23 +504,25 @@ PropertyValue Hairpin::propertyDefault(Pid id) const

case Pid::BEGIN_TEXT:
if (_hairpinType == HairpinType::CRESC_LINE) {
return String(u"cresc.");
return score()->styleV(Sid::hairpinCrescText);
}
if (_hairpinType == HairpinType::DECRESC_LINE) {
return String(u"dim.");
return score()->styleV(Sid::hairpinDecrescText);
}
return String();

case Pid::CONTINUE_TEXT:
case Pid::END_TEXT:
if (_hairpinType == HairpinType::CRESC_LINE) {
return String(u"(cresc.)");
return score()->styleV(Sid::hairpinCrescContText);
}
if (_hairpinType == HairpinType::DECRESC_LINE) {
return String(u"(dim.)");
return score()->styleV(Sid::hairpinDecrescContText);
}
return String();

case Pid::END_TEXT:
return String();

case Pid::BEGIN_TEXT_PLACE:
case Pid::CONTINUE_TEXT_PLACE:
return TextPlace::LEFT;
Expand Down

0 comments on commit ed403b2

Please sign in to comment.