13
0

canvas: another fix to bounding box computation, this time for Item itself

This commit is contained in:
Paul Davis 2021-07-27 13:23:37 -06:00
parent b8b392f729
commit a55a004142

View File

@ -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;
}