Skip to content

Commit

Permalink
Merge pull request #24748 from miiizen/24695-fix
Browse files Browse the repository at this point in the history
Use tick2measureMM
  • Loading branch information
miiizen authored Sep 19, 2024
2 parents 086b3b9 + 44051d8 commit 1aec102
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/engraving/dom/gradualtempochange.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -358,8 +358,7 @@ TempoText* GradualTempoChangeSegment::findElementToSnapAfter() const
// Note: we don't need to look for a tempoChange after.
// It is the next tempoChange which looks for a tempoChange before.
Fraction refTick = tempoChange()->tick2();
Measure* measure = score()->tick2measure(refTick);
measure = style().styleB(Sid::createMultiMeasureRests) && measure->hasMMRest() ? measure->mmRest() : measure;
Measure* measure = score()->tick2measureMM(refTick);
if (!measure) {
return nullptr;
}
Expand Down

0 comments on commit 1aec102

Please sign in to comment.