File: fix-add-img-to-frame.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 (20 lines) | stat: -rw-r--r-- 782 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Origin: upstream, commit:8a19c1532dd1847fd77b3b9dd9f9d9562f9baa25
Author: Marc Sabatella <marc@outsideshore.com>
Description: fix #307720: assertion failure adding image to vertical frame
 .
 Resolves: https://musescore.org/en/node/307720
 .
 we are tryng to cast an element to an HBox that isn't necessarily one.
 No reason to do this; it works just fine without the cast.

--- a/mscore/propertymenu.cpp
+++ b/mscore/propertymenu.cpp
@@ -311,7 +311,7 @@ void ScoreView::elementPropertyAction(co
                   }
             }
       else if (cmd == "picture") {
-            mscore->addImage(score(), static_cast<HBox*>(e));
+            mscore->addImage(score(), e);
             }
       else if (cmd == "frame-text") {
             Text* t = new Text(score(), Tid::FRAME);