const auto index = 0;
auto edge_arrowtail =
m_svg_g_element.find_child(SVG::SVGElementType::Polygon, index);
- const auto edge_arrowtail_bbox = edge_arrowtail.outline_bbox();
+ auto edge_arrowtail_bbox = edge_arrowtail.outline_bbox();
+ if (primitive_arrow_shape == "box") {
+ auto edge_arrowtail_stem =
+ m_svg_g_element.find_child(SVG::SVGElementType::Polyline, index);
+ auto edge_arrowtail_stem_bbox = edge_arrowtail_stem.outline_bbox();
+ edge_arrowtail_bbox.extend(edge_arrowtail_stem_bbox);
+ }
return edge_arrowtail_bbox;
}