From a55a004142d11245f9d76c35924afd90de92a0ca Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 27 Jul 2021 13:23:37 -0600 Subject: [PATCH] canvas: another fix to bounding box computation, this time for Item itself --- libs/canvas/item.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libs/canvas/item.cc b/libs/canvas/item.cc index a6a355951b..78d19082a7 100644 --- a/libs/canvas/item.cc +++ b/libs/canvas/item.cc @@ -797,11 +797,13 @@ Item::covers (Duple const & point) const Duple p = window_to_item (point); if (_bounding_box_dirty) { - compute_bounding_box (); + (void) bounding_box (); } Rect r = bounding_box(); + /* bounding box uses item coordinates, with _position as the origin */ + if (!r) { return false; }