From: Magnus Jacobsson Date: Thu, 6 Oct 2022 09:51:02 +0000 (+0200) Subject: tests: GraphvizEdge: handle primitive arrow shape 'tee' in arrowtail_outline_bbox X-Git-Tag: 7.0.1~3^2~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c8e1fba448ac6055a1b6f9f937995282ef56efc0;p=graphviz tests: GraphvizEdge: handle primitive arrow shape 'tee' in arrowtail_outline_bbox --- 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();