Skip to content

Commit

Permalink
fix #274841: rewind should reposition score
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcSabatella committed Aug 18, 2018
1 parent e767cab commit 92118f0
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions mscore/musescore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5265,9 +5265,17 @@ void MuseScore::cmd(QAction* a, const QString& cmd)
mixer->updateAll(cs->masterScore());
}
else if (cmd == "rewind") {
seq->rewindStart();
if (playPanel)
playPanel->heartBeat(0, 0, 0);
if (cs) {
int tick = loop() ? cs->loopInTick() : 0;
seq->seek(tick);
if (cv) {
Measure* m = cs->tick2measureMM(tick);
if (m)
cv->gotoMeasure(m);
}
if (playPanel)
playPanel->heartBeat(0, 0, 0);
}
}
else if (cmd == "play-next-measure")
seq->nextMeasure();
Expand Down

0 comments on commit 92118f0

Please sign in to comment.