canvas: call Item::bounding_box() to recompute bounding box when needed

Since 74fe396cc5 compute_bounding_box() by itself does not do the entire computation, so we
must call into Item::bounding_box() to get the result with children added also
This commit is contained in:
Paul Davis 2021-07-27 13:17:48 -06:00
parent c0425ba70f
commit 9095057675
3 changed files with 3 additions and 3 deletions

View file

@ -256,7 +256,7 @@ Box::layout ()
if (yes_do_it) {
reposition_children ();
compute_bounding_box ();
(void) bounding_box ();
const double w = std::max (requested_width, _bounding_box.width());
const double h = std::max (requested_height, _bounding_box.height());