Skip to content

Commit

Permalink
Merge pull request #24816 from mike-spa/fixFreezeOnAddTitle
Browse files Browse the repository at this point in the history
Fix freeze on add title text
  • Loading branch information
DmitryArefiev committed Sep 24, 2024
2 parents facb68d + 7ce9c1c commit f14d5ec
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/engraving/dom/undo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2231,11 +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();

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

0 comments on commit f14d5ec

Please sign in to comment.