Skip to content

Commit

Permalink
Correct cresc. dim. centering
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-spa committed Jun 3, 2024
1 parent 8a2659f commit 71e87e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/engraving/rendering/dev/systemlayout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2795,7 +2795,7 @@ void SystemLayout::centerElementBetweenStaves(EngravingItem* element, const Syst
SkylineLine thisSkyline = isAbove ? thisStaff->skyline().north() : thisStaff->skyline().south();
thisSkyline.remove_if([element](ShapeElement& shEl) {
const EngravingItem* shapeItem = shEl.item();
return shapeItem && (shapeItem == element || shapeItem->isAccidental()
return shapeItem && (shapeItem == element || shapeItem->parentItem(true) == element || shapeItem->isAccidental()
|| shapeItem == element->ldata()->itemSnappedBefore() || shapeItem == element->ldata()->itemSnappedAfter());
});
double edgeOfThisStaff = isAbove ? thisSkyline.top(startX, endX) : thisSkyline.bottom(startX, endX);
Expand Down

0 comments on commit 71e87e5

Please sign in to comment.