From: Magnus Jacobsson Date: Wed, 5 Oct 2022 20:28:14 +0000 (+0200) Subject: tests: GraphvizEdge: handle primitive arrow shape 'dot' in arrowtail_outline_bbox X-Git-Tag: 7.0.0~6^2~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8b9835906df0690e0f452a1988251c13808eac37;p=graphviz tests: GraphvizEdge: handle primitive arrow shape 'dot' in arrowtail_outline_bbox --- 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 =