Skip to content

Commit

Permalink
Merge pull request #3602 from Jojo-Schmitz/play-panel-close-score
Browse files Browse the repository at this point in the history
Fix #271039: crash when closing score after changing tempo in play panel
  • Loading branch information
lasconic committed Apr 4, 2018
2 parents 62c6bbe + 22d6f43 commit ea4fde0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mscore/seq.cpp
Expand Up @@ -1553,7 +1553,7 @@ void Seq::updateSynthesizerState(int tick1, int tick2)

double Seq::curTempo() const
{
return cs->tempomap()->tempo(playPos->first);
return cs ? cs->tempomap()->tempo(playPos->first) : 0.0;
}

//---------------------------------------------------------
Expand Down

0 comments on commit ea4fde0

Please sign in to comment.