Skip to content

Commit

Permalink
Fix #556: Measure Number offset not updating all systems
Browse files Browse the repository at this point in the history
  • Loading branch information
worldwideweary authored and Jojo-Schmitz committed Aug 11, 2024
1 parent 4107506 commit 878e1ba
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions mscore/measureproperties.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

#include "measureproperties.h"
#include "libmscore/measure.h"
#include "libmscore/measurebase.h"
#include "libmscore/sig.h"
#include "libmscore/score.h"
#include "libmscore/repeat.h"
Expand Down Expand Up @@ -257,12 +258,13 @@ void MeasureProperties::apply()
propertiesChanged = true;
}
}

int measureOffset = measureNumberOffset->value();
bool offsetChanged = (measureOffset != m->noOffset()) ? true : false;
m->undoChangeProperty(Pid::REPEAT_COUNT, repeatCount());
m->undoChangeProperty(Pid::BREAK_MMR, breakMultiMeasureRest->isChecked());
m->undoChangeProperty(Pid::USER_STRETCH, layoutStretch->value());
m->undoChangeProperty(Pid::MEASURE_NUMBER_MODE, measureNumberMode->currentIndex());
m->undoChangeProperty(Pid::NO_OFFSET, measureNumberOffset->value());
m->undoChangeProperty(Pid::NO_OFFSET, measureOffset);
m->undoChangeProperty(Pid::IRREGULAR, isIrregular());

if (m->ticks() != len()) {
Expand All @@ -284,6 +286,9 @@ void MeasureProperties::apply()
if (propertiesChanged) {
m->triggerLayout();
}
if (offsetChanged) {
score->doLayoutRange(m->tick(), score->lastMeasure()->tick());
}

score->select(m, SelectType::SINGLE, 0);
score->update();
Expand Down

0 comments on commit 878e1ba

Please sign in to comment.