Skip to content

Commit

Permalink
Look at offset y to decide if item can be centered
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-spa committed Aug 13, 2024
1 parent 3612c1b commit 742ac19
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 @@ -2838,7 +2838,7 @@ void SystemLayout::centerElementsBetweenStaves(const System* system)

bool SystemLayout::elementShouldBeCenteredBetweenStaves(const EngravingItem* item, const System* system)
{
if (item->offset() != item->propertyDefault(Pid::OFFSET).value<PointF>()) {
if (item->offset().y() != item->propertyDefault(Pid::OFFSET).value<PointF>().y()) {
// NOTE: because of current limitations of the offset system, we can't center an element that's been manually moved.
return false;
}
Expand Down

0 comments on commit 742ac19

Please sign in to comment.