Skip to content

Commit

Permalink
fix #301116: don't write default note event values along with non-def…
Browse files Browse the repository at this point in the history
…ault ones
  • Loading branch information
Harmoniker1 committed Feb 14, 2020
1 parent b29e71f commit d83b768
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libmscore/noteevent.cpp
Expand Up @@ -41,9 +41,9 @@ void NoteEvent::read(XmlReader& e)
void NoteEvent::write(XmlWriter& xml) const
{
xml.stag("Event");
xml.tag("pitch", _pitch);
xml.tag("ontime", _ontime);
xml.tag("len", _len);
xml.tag("pitch", _pitch, 0);
xml.tag("ontime", _ontime, 0);
xml.tag("len", _len, NOTE_LENGTH);
xml.etag();
}

Expand Down

0 comments on commit d83b768

Please sign in to comment.