Skip to content

Commit 905e64b

Browse files
Jojo-Schmitzigorkorsukov
authored andcommitted
Fix #315002: Prevent potential crash
1 parent ae5bcd3 commit 905e64b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libmscore/chord.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1477,7 +1477,7 @@ qreal Chord::minAbsStemLength() const
14771477

14781478
// two-note tremolo
14791479
else {
1480-
if (_tremolo->chord1()->up() == _tremolo->chord2()->up()) {
1480+
if (_tremolo->chord2() && _tremolo->chord1()->up() == _tremolo->chord2()->up()) {
14811481
const qreal tremoloMinHeight = _tremolo->minHeight() * spatium();
14821482
return tremoloMinHeight + beamLvl * beamDist + 2 * td * spatium();
14831483
}

0 commit comments

Comments
 (0)