File: save-no-redundant.diff

package info (click to toggle)
musescore3 3.2.3%2Bdfsg2-19
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 218,192 kB
  • sloc: cpp: 291,369; xml: 200,226; sh: 3,779; ansic: 1,447; python: 393; makefile: 249; perl: 82; pascal: 79
file content (19 lines) | stat: -rw-r--r-- 633 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Origin: upstream, commit:d83b768f87a9d05a8b33a5b80e7043922ab7c337
Author: Howard-C <howardc@pku.edu.cn>
Description: fix #301116: don't write default note event values along with non-default ones

--- a/libmscore/noteevent.cpp
+++ b/libmscore/noteevent.cpp
@@ -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();
       }