canvas: when an item has its bbox marked dirty, this should propagate to all parents

This commit is contained in:
Paul Davis 2022-04-26 21:57:39 -06:00
parent d54d63da3a
commit c75ceb31ab
16 changed files with 71 additions and 58 deletions

View file

@ -161,7 +161,7 @@ Grid::set_margin (double t, double r, double b, double l)
void
Grid::reset_bg ()
{
if (_bounding_box_dirty) {
if (bbox_dirty()) {
(void) bounding_box ();
}
@ -331,7 +331,7 @@ Grid::reposition_children ()
(*i)->set_position (Duple (col_dimens[c->second.x], row_dimens[c->second.y]));
}
_bounding_box_dirty = true;
set_bbox_dirty ();
reset_bg ();
}