Skip to content

Commit

Permalink
Fix freeze on add title text
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-spa committed Sep 24, 2024
1 parent 13a0c6d commit 7ce9c1c
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 7ce9c1c

Please sign in to comment.