Skip to content

Commit

Permalink
Merge pull request #24417 from mike-spa/fixDynamicsBlockedAtBarline
Browse files Browse the repository at this point in the history
Fix dynamics blocked at barline on drag
  • Loading branch information
miiizen authored Sep 11, 2024
2 parents bbde91d + 7ef30d0 commit ac76040
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/engraving/dom/dynamic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ bool Dynamic::isEditAllowed(EditData& ed) const

void Dynamic::manageBarlineCollisions()
{
if (!_avoidBarLines || score()->nstaves() <= 1 || anchorToEndOfPrevious()) {
if (!_avoidBarLines || score()->nstaves() <= 1 || anchorToEndOfPrevious() || !isStyled(Pid::OFFSET)) {
return;
}

Expand Down Expand Up @@ -403,6 +403,7 @@ void Dynamic::manageBarlineCollisions()
break;
}
}

if (rightBarLineSegment) {
EngravingItem* e = rightBarLineSegment->elementAt(barLineStaff * VOICES);
if (e) {
Expand Down

0 comments on commit ac76040

Please sign in to comment.