From 8b9835906df0690e0f452a1988251c13808eac37 Mon Sep 17 00:00:00 2001 From: Magnus Jacobsson Date: Wed, 5 Oct 2022 22:28:14 +0200 Subject: [PATCH] tests: GraphvizEdge: handle primitive arrow shape 'dot' in arrowtail_outline_bbox --- tests/graphviz_edge.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/graphviz_edge.cpp b/tests/graphviz_edge.cpp index 72754195e..6f7a36a56 100644 --- a/tests/graphviz_edge.cpp +++ b/tests/graphviz_edge.cpp @@ -87,8 +87,10 @@ SVG::SVGRect GraphvizEdge::arrowtail_outline_bbox( primitive_arrow_shape)}; } const auto index = 0; + const auto main_svg_element_type = + edge_arrowhead_main_svg_element_type(primitive_arrow_shape); auto edge_arrowtail = - m_svg_g_element.find_child(SVG::SVGElementType::Polygon, index); + m_svg_g_element.find_child(main_svg_element_type, index); auto edge_arrowtail_bbox = edge_arrowtail.outline_bbox(); if (primitive_arrow_shape == "box") { auto edge_arrowtail_stem = -- 2.40.0