Merge branch 'rochade' into master
[alioth/musescore.git] / debian / patches / upstream / save-no-redundant.diff
1 Origin: upstream, commit:d83b768f87a9d05a8b33a5b80e7043922ab7c337
2 Author: Howard-C <howardc@pku.edu.cn>
3 Description: fix #301116: don't write default note event values along with non-default ones
4
5 --- a/libmscore/noteevent.cpp
6 +++ b/libmscore/noteevent.cpp
7 @@ -41,9 +41,9 @@ void NoteEvent::read(XmlReader& e)
8  void NoteEvent::write(XmlWriter& xml) const
9        {
10        xml.stag("Event");
11 -      xml.tag("pitch", _pitch);
12 -      xml.tag("ontime", _ontime);
13 -      xml.tag("len", _len);
14 +      xml.tag("pitch", _pitch, 0);
15 +      xml.tag("ontime", _ontime, 0);
16 +      xml.tag("len", _len, NOTE_LENGTH);
17        xml.etag();
18        }
19