Skip to content

Commit

Permalink
fix #285432: save offset property for fermata
Browse files Browse the repository at this point in the history
  • Loading branch information
peterhieuvu committed Mar 7, 2019
1 parent fc515c4 commit d474dbc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libmscore/fermata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@ void Fermata::write(XmlWriter& xml) const
xml.tag("subtype", Sym::id2name(_symId));
writeProperty(xml, Pid::TIME_STRETCH);
writeProperty(xml, Pid::PLAY);
if (!isStyled(Pid::OFFSET))
writeProperty(xml, Pid::OFFSET);
Element::writeProperties(xml);
xml.etag();
}
Expand Down
1 change: 1 addition & 0 deletions mtest/libmscore/compat206/fermata-ref.mscx
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@
<Fermata>
<subtype>fermataAbove</subtype>
<timeStretch>3</timeStretch>
<offset x="-2.05234" y="-4.89487"/>
</Fermata>
<Chord>
<durationType>eighth</durationType>
Expand Down

0 comments on commit d474dbc

Please sign in to comment.