shapes: point_init/point_inside: fix clipping of edge at node outline
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Fri, 16 Sep 2022 10:35:53 +0000 (12:35 +0200)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Tue, 11 Oct 2022 19:45:27 +0000 (21:45 +0200)
commitbeede1476b3b23cd22ca1cb0f3b089aa397e42ab
treeaf4f602fa0c862fb6d11c122272deddee8f4af2c
parentb1a03d58771a11977cd46fdceed6cd3227e512d6
shapes: point_init/point_inside: fix clipping of edge at node outline

Take node penwidth into account for the point node shape

Following the fix for polygon and ellipse shapes except the 'point'
shape, this fixes the second part of arrow not respecting penwidth for
the 'point' shape. A similar fix needs to be applied to fix the second
part for the 'cylinder' node shape.

The test_edge_node_overlap_point_node_shape 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_point_node_shape.cpp