File: 27-font-style.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-- 792 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:146f6cf6398192aaab2888e2ee283d12922ae188
Author: Howard-C <howardc@pku.edu.cn>
Description: fix #289908: cannot apply italic or underline to glissando text
 The font style property is being converted from `FontStyle` to `bool`
 instead of `int`, so bold, italic and underline are all the same.
 .
 This commit fixes that.

--- a/libmscore/glissando.cpp
+++ b/libmscore/glissando.cpp
@@ -649,7 +649,7 @@ bool Glissando::setProperty(Pid property
                   setFontSize(v.toReal());
                   break;
             case Pid::FONT_STYLE:
-                  setFontStyle(FontStyle(v.toBool()));
+                  setFontStyle(FontStyle(v.toInt()));
                   break;
             default:
                   if (!SLine::setProperty(propertyId, v))