mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-11 09:06:33 +01:00
canvas: another fix to bounding box computation, this time for Item itself
This commit is contained in:
parent
b8b392f729
commit
a55a004142
1 changed files with 3 additions and 1 deletions
|
|
@ -797,11 +797,13 @@ Item::covers (Duple const & point) const
|
||||||
Duple p = window_to_item (point);
|
Duple p = window_to_item (point);
|
||||||
|
|
||||||
if (_bounding_box_dirty) {
|
if (_bounding_box_dirty) {
|
||||||
compute_bounding_box ();
|
(void) bounding_box ();
|
||||||
}
|
}
|
||||||
|
|
||||||
Rect r = bounding_box();
|
Rect r = bounding_box();
|
||||||
|
|
||||||
|
/* bounding box uses item coordinates, with _position as the origin */
|
||||||
|
|
||||||
if (!r) {
|
if (!r) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue