Skip to content

Commit

Permalink
Merge pull request #3304 from MarcSabatella/255646-actual-timesig-crash
Browse files Browse the repository at this point in the history
fix #255646: crash changing actual duration of only measure
  • Loading branch information
lasconic committed Nov 23, 2017
2 parents 217b5fc + 98f490c commit 7da19a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libmscore/edit.cpp
Expand Up @@ -736,7 +736,7 @@ void Score::cmdAddTimeSig(Measure* fm, int staffIdx, TimeSig* ts, bool local)
//
// rewrite all measures up to the next time signature
//
if (fm == score->firstMeasure() && (fm->len() != fm->timesig())) {
if (fm == score->firstMeasure() && fm->nextMeasure() && (fm->len() != fm->timesig())) {
// handle upbeat
undoChangeProperty(fm, P_ID::TIMESIG_NOMINAL, QVariant::fromValue(ns));
Measure* m = fm->nextMeasure();
Expand Down

0 comments on commit 7da19a0

Please sign in to comment.