]> granicus.if.org Git - graphviz/commitdiff
tests: GraphvizEdge: handle primitive arrow shape 'tee' in arrowtail_outline_bbox
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Thu, 6 Oct 2022 09:51:02 +0000 (11:51 +0200)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Fri, 4 Nov 2022 17:45:17 +0000 (18:45 +0100)
tests/graphviz_edge.cpp

index 9cc5b16dbd00fd48ce181d978e3b3fb65eae328c..1c328f3af0d59a9e17d60fe9c9e4a7991d1c6a68 100644 (file)
@@ -103,7 +103,8 @@ SVG::SVGRect GraphvizEdge::arrowtail_outline_bbox(
   auto edge_arrowtail =
       m_svg_g_element.find_child(main_svg_element_type, index);
   auto edge_arrowtail_bbox = edge_arrowtail.outline_bbox();
-  if (primitive_arrow_shape == "box") {
+  if (primitive_arrow_shapes_containing_polyline.contains(
+          primitive_arrow_shape)) {
     auto edge_arrowtail_stem =
         m_svg_g_element.find_child(SVG::SVGElementType::Polyline, index);
     auto edge_arrowtail_stem_bbox = edge_arrowtail_stem.outline_bbox();