]> granicus.if.org Git - graphviz/commit
shapes: poly_init: fix clipping of edge at node outline for ellipse node shapes
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Fri, 16 Sep 2022 08:53:36 +0000 (10:53 +0200)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Tue, 11 Oct 2022 19:45:27 +0000 (21:45 +0200)
commitb1a03d58771a11977cd46fdceed6cd3227e512d6
tree7efdf1c9ea420f9369403c266eca2bac2f150792
parent5a11aede5dc28e62ddc651ff01027e51efe58d49
shapes: poly_init: fix clipping of edge at node outline for ellipse node shapes

Take node penwidth into account also for ellipse node shapes.

Following the fix for polygon node shapes, this fixes the second part
of arrow not respecting penwith for ellipse shapes other than
'point'. Similar fixes need to be applied to fix the second part for
the 'point' and 'cylinder' node shapes.

The test_edge_node_overlap_ellipse_node_shapes_except_point test now
succeeds, so the expectancy that it should fail is removed.

Towards https://gitlab.com/graphviz/graphviz/-/issues/372.
lib/common/shapes.c
tests/test_edge_node_overlap_ellipse_node_shapes_except_point.cpp