Skip to content

Commit 5ed91da

Browse files
authored
Draw the intersection node of connection with 50% increased width (#14184)
Fixes #14150
1 parent 6f9c391 commit 5ed91da

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

OMEdit/OMEditLIB/Annotations/LineAnnotation.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -706,10 +706,12 @@ void LineAnnotation::paint(QPainter *painter, const QStyleOptionGraphicsItem *op
706706
&& intersectionPoint != lastPoint1
707707
&& intersectionPoint != firstPoint2
708708
&& intersectionPoint != lastPoint2) {
709+
// draw the intersection point node with 50% increased width
710+
int radii = qCeil(painter->pen().widthF() * 1.5);
709711
painter->save();
710712
painter->setPen(Qt::NoPen);
711713
painter->setBrush(QBrush(mLineColor));
712-
painter->drawEllipse(intersectionPoint, 0.75, 0.75);
714+
painter->drawEllipse(intersectionPoint, radii, radii);
713715
painter->restore();
714716
}
715717
}

0 commit comments

Comments
 (0)