Skip to content

Commit b719219

Browse files
Merge pull request #31501 from mathesoncalum/fix_crash_startup-465
Fix potential crash on startup [4.6.5]
2 parents 4b0113a + 24706ad commit b719219

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/palette/internal/palettecompat.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ void PaletteCompat::migrateOldPaletteCellIfNeeded(PaletteCell* cell, Score* pale
129129
return;
130130
}
131131

132-
if (item->isPedal()) {
132+
if (item->isPedal() && !toPedal(item)->segmentsEmpty()) {
133133
Pedal* newPedal = Factory::createPedal(paletteScore->dummy());
134134
Pedal* oldPedal = toPedal(item);
135135

0 commit comments

Comments
 (0)