File: 24-element-size.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 (15 lines) | stat: -rw-r--r-- 691 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Origin: upstream, commit:da507a5dc9839a39874801d348244f346dd5517a
Author: Matt McClinch <mattmcclinch@gmail.com>
Description: fix #283319: Time Signature disappears

--- a/libmscore/style.cpp
+++ b/libmscore/style.cpp
@@ -2323,7 +2323,7 @@ bool MStyle::readProperties(XmlReader& e
                         e.readElementText();
                         }
                   else if (!strcmp("QSizeF", type)) {
-                        qreal x = e.intAttribute("w", 0);
+                        qreal x = e.doubleAttribute("w", 0.0);
                         qreal y = e.doubleAttribute("h", 0.0);
                         set(idx, QSizeF(x, y));
                         e.readElementText();