File: 10-ui-undo-track.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-- 878 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Origin: upstream, commit:a418fc96563e2ecc155402f321a61e6a47f1fb5f
Author: James Thistlewood <jamesthistlewood@gmail.com>
Description: fix #292024: chord symbols attached to fret diagrams in other staves

--- a/libmscore/edit.cpp
+++ b/libmscore/edit.cpp
@@ -4420,7 +4420,7 @@ void Score::undoAddElement(Element* elem
                         // make harmony child of fret diagram if possible
                         if (ne->isHarmony()) {
                               for (Element* segel : segment->annotations()) {
-                                    if (segel->isFretDiagram()) {
+                                    if (segel && segel->isFretDiagram() && segel->track() == ntrack) {
                                           ne->setTrack(segel->track());
                                           ne->setParent(segel);
                                           break;