Skip to content

Commit

Permalink
Code review
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-spa committed Sep 20, 2024
1 parent d7d6ca2 commit 463bbc5
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/engraving/dom/undo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2231,14 +2231,10 @@ void InsertRemoveMeasures::insertMeasures()
score->setLayoutAll();

// move subsequent StaffTypeChanges
if (moveStc) {
Fraction tickStart = fm->tick();
Fraction tickEnd = lm->endTick();
if (moveStc && tickEnd > tickStart) {
for (Staff* staff : score->staves()) {
Fraction tickStart = fm->tick();
Fraction tickEnd = lm->endTick();
if (tickEnd == tickStart) {
break;
}

// loop backwards until the insert point
auto stRange = staff->staffTypeRange(score->lastMeasure()->tick());
int moveTick = stRange.first;
Expand Down

0 comments on commit 463bbc5

Please sign in to comment.