Skip to content

Commit

Permalink
Fix #315002: Prevent potential crash
Browse files Browse the repository at this point in the history
  • Loading branch information
Jojo-Schmitz authored and igorkorsukov committed Jan 3, 2021
1 parent ae5bcd3 commit 905e64b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libmscore/chord.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1477,7 +1477,7 @@ qreal Chord::minAbsStemLength() const

// two-note tremolo
else {
if (_tremolo->chord1()->up() == _tremolo->chord2()->up()) {
if (_tremolo->chord2() && _tremolo->chord1()->up() == _tremolo->chord2()->up()) {
const qreal tremoloMinHeight = _tremolo->minHeight() * spatium();
return tremoloMinHeight + beamLvl * beamDist + 2 * td * spatium();
}
Expand Down

0 comments on commit 905e64b

Please sign in to comment.