Skip to content

Commit

Permalink
Merge pull request musescore#18407 from mike-spa/expressionAutoplaceC…
Browse files Browse the repository at this point in the history
…orrection-2

Correct autoplace for expression when not snapping to dynamic
  • Loading branch information
RomanPudashkin committed Jul 5, 2023
2 parents 2356fe2 + ea81bd9 commit 62f79b9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/engraving/layout/v0/tlayout.cpp
Expand Up @@ -1535,7 +1535,12 @@ void TLayout::layout(Expression* item, LayoutContext& ctx)

item->setSnappedDynamic(nullptr);

if (!item->autoplace() || !item->snapToDynamics()) {
if (!item->autoplace()) {
return;
}

if (!item->snapToDynamics()) {
item->autoplaceSegmentElement();
return;
}

Expand Down

0 comments on commit 62f79b9

Please sign in to comment.