Skip to content

Commit

Permalink
Merge pull request #4783 from mattmcclinch/282275-change-timesig
Browse files Browse the repository at this point in the history
fix #282275: Crash when changing Time Signature in parts
  • Loading branch information
anatoly-os committed Mar 8, 2019
1 parent 2b732a4 commit 8d61f4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libmscore/edit.cpp
Expand Up @@ -775,8 +775,8 @@ void Score::cmdAddTimeSig(Measure* fm, int staffIdx, TimeSig* ts, bool local)
// try to rewrite the measures first
// we will only add time signatures if this succeeds
// this means, however, that the rewrite cannot depend on the time signatures being in place
if (fm) {
if (!mScore->rewriteMeasures(fm, ns, local ? staffIdx : -1)) {
if (mf) {
if (!mScore->rewriteMeasures(mf, ns, local ? staffIdx : -1)) {
undoStack()->current()->unwind();
return;
}
Expand Down

0 comments on commit 8d61f4f

Please sign in to comment.