Skip to content

Commit

Permalink
Align text from textlines in skyline
Browse files Browse the repository at this point in the history
  • Loading branch information
miiizen committed Feb 26, 2025
1 parent b2afac6 commit a50bab8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/engraving/rendering/score/systemlayout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2783,7 +2783,11 @@ void SystemLayout::updateSkylineForElement(EngravingItem* element, const System*
Skyline& skyline = system->staff(element->staffIdx())->skyline();
SkylineLine& skylineLine = element->placeAbove() ? skyline.north() : skyline.south();
for (ShapeElement& shapeEl : skylineLine.elements()) {
if (shapeEl.item() == element) {
const EngravingItem* itemInSkyline = shapeEl.item();
if (itemInSkyline && itemInSkyline->isText() && itemInSkyline->explicitParent() && itemInSkyline->parent()->isSLineSegment()) {
itemInSkyline = itemInSkyline->parentItem();
}
if (itemInSkyline == element) {
shapeEl.translate(0.0, yMove);
}
}
Expand Down
Binary file added vtest/scores/hairpins-4.mscz
Binary file not shown.

0 comments on commit a50bab8

Please sign in to comment.