From c8e1fba448ac6055a1b6f9f937995282ef56efc0 Mon Sep 17 00:00:00 2001 From: Magnus Jacobsson Date: Thu, 6 Oct 2022 11:51:02 +0200 Subject: [PATCH] tests: GraphvizEdge: handle primitive arrow shape 'tee' in arrowtail_outline_bbox --- tests/graphviz_edge.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/graphviz_edge.cpp b/tests/graphviz_edge.cpp index 9cc5b16db..1c328f3af 100644 --- a/tests/graphviz_edge.cpp +++ b/tests/graphviz_edge.cpp @@ -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(); -- 2.40.0