canvas: another fix to bounding box computation, this time for Item itself
This commit is contained in:
parent
b8b392f729
commit
a55a004142
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user