mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 07:14:56 +01:00
canvas: use Item::bb_clean() to mark _bounding_box_dirty false
This commit is contained in:
parent
5b123441f4
commit
ad6afbe68a
18 changed files with 35 additions and 21 deletions
|
|
@ -239,7 +239,7 @@ Text::compute_bounding_box () const
|
|||
{
|
||||
if (!_canvas || _text.empty()) {
|
||||
_bounding_box = Rect ();
|
||||
_bounding_box_dirty = false;
|
||||
bb_clean ();
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -253,7 +253,7 @@ Text::compute_bounding_box () const
|
|||
_redraw ();
|
||||
}
|
||||
_bounding_box = Rect (0, 0, min (_clamped_width, (double) _image->get_width() * retina_factor), _image->get_height() * retina_factor);
|
||||
_bounding_box_dirty = false;
|
||||
bb_clean ();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue