Skip to content

Commit b2ac8be

Browse files
committed
Add comment
1 parent 7689ad2 commit b2ac8be

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/engraving/rendering/score/horizontalspacing.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -652,7 +652,9 @@ void HorizontalSpacing::checkCollisionsWithCrossStaffStems(const Segment* thisSe
652652

653653
Stem* stem = potentialCollidingChord->stem();
654654
Shape prevStemShape = stem->shape().translated(stem->pos() + potentialCollidingChord->pos());
655-
prevStemShape.adjust(0.0, -10000, 0.0, 10000);
655+
// We don't know where this stem is vertically, but we know from the beam arrangement that
656+
// it's going to be crossed anyway, so we can space to it as if it had infinite height.
657+
prevStemShape.adjust(0.0, -100000, 0.0, 100000);
656658

657659
const Shape& staffShape = nextSeg->staffShape(staffIdx);
658660

0 commit comments

Comments
 (0)