File: fix-ins-hframe.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 (31 lines) | stat: -rw-r--r-- 1,462 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
21
22
23
24
25
26
27
28
29
30
31
Origin: upstream, commit:1ed931a11c1b3ef05cd336bac2ea853a206f6d77
Author: Marc Sabatella <marc@outsideshore.com>
Description: fix #306612: insert horizontal frame in front of frame using palette
 .
 Resolves: https://musescore.org/en/node/306612
 .
 You can select a frame and insert any other type of frame in front
 using the palette, but you cannot insert a horizontal frame this way.
 Cause is simple: missing handler for this in acceptDrop() and drop().
 Fix is trivial.

--- a/libmscore/box.cpp
+++ b/libmscore/box.cpp
@@ -499,6 +499,7 @@ bool Box::acceptDrop(EditData& data) con
                         case IconType::VFRAME:
                         case IconType::TFRAME:
                         case IconType::FFRAME:
+                        case IconType::HFRAME:
                         case IconType::MEASURE:
                               return true;
                         default:
@@ -575,6 +576,9 @@ Element* Box::drop(EditData& data)
                         case IconType::FFRAME:
                               score()->insertMeasure(ElementType::FBOX, this);
                               break;
+                        case IconType::HFRAME:
+                              score()->insertMeasure(ElementType::HBOX, this);
+                              break;
                         case IconType::MEASURE:
                               score()->insertMeasure(ElementType::MEASURE, this);
                               break;