File: crash-del-hbox.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-- 586 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
20
Origin: upstream, commit:24e239ed74770e24d2981883d5d435302735567a
Author: Dmitri Ovodok <dmitrio95@yandex.ru>
Description: Fix a crash on removing HBox from a score

--- a/libmscore/box.cpp
+++ b/libmscore/box.cpp
@@ -457,9 +457,12 @@ void HBox::layout()
             setPos(x, y);
             bbox().setRect(0.0, 0.0, w, h);
             }
-      else {
+      else if (system()) {
             bbox().setRect(0.0, 0.0, point(boxWidth()), system()->height());
             }
+      else {
+            bbox().setRect(0.0, 0.0, 50, 50);
+            }
       Box::layout();
       }