File: save-no-redundant.diff

package info (click to toggle)
musescore2 2.3.2%2Bdfsg4-16
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 170,464 kB
  • sloc: cpp: 262,612; xml: 176,707; sh: 3,377; ansic: 1,246; python: 356; makefile: 227; perl: 82; pascal: 78
file content (19 lines) | stat: -rw-r--r-- 620 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: backport, 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(Xml& 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, 1000);
       xml.etag();
       }