Skip to content

Commit

Permalink
fix #310603: tremolo customizations lost on second save/reload
Browse files Browse the repository at this point in the history
  • Loading branch information
Harmoniker1 authored and vpereverzev committed Oct 5, 2020
1 parent aae95c4 commit 1f25c77
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions libmscore/tremolo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -565,10 +565,15 @@ void Tremolo::read(XmlReader& e)
const QStringRef& tag(e.name());
if (tag == "subtype")
setTremoloType(e.readElementText());
else if (tag == "tremoloPlacement")
setTremoloPlacement(TremoloPlacement(e.readInt()));
else if (tag == "strokeStyle")
// stroke style needs special handling other than readStyledProperty()
// to avoid calling customStrokeStyleApplicable() in setProperty()
// which cannot be called now because durationType() isn't defined yet
else if (tag == "strokeStyle") {
setStrokeStyle(TremoloStrokeStyle(e.readInt()));
setPropertyFlags(Pid::TREMOLO_STROKE_STYLE, PropertyFlags::UNSTYLED);
}
else if (readStyledProperty(e, tag))
;
else if (!Element::readProperties(e))
e.unknown();
}
Expand Down

0 comments on commit 1f25c77

Please sign in to comment.