fix #23678: Opening MuseScore without score and Show Play Panel enabled causes crash

This commit is contained in:
lasconic 2013-12-10 17:46:57 +01:00
parent be164dc03a
commit 0185850b3e

View file

@ -524,6 +524,8 @@ void Seq::processMessages()
switch(msg.id) {
case SEQ_TEMPO_CHANGE:
{
if (!cs)
continue;
if (playTime != 0) {
int tick = cs->utime2utick(qreal(playTime) / qreal(MScore::sampleRate));
cs->tempomap()->setRelTempo(msg.realVal);