Canvas: Fix notification to parent of show/hide status
This was changed in fc9840f2a9
to hard code a "false" argument describing
whether or not the child bbox had changed. This causes the parent to not
recompute its own bounding box when a child is shown/hidden, which is
incorrect. We now force it to true, which may be overkill for some purposes,
but at worst will just force an unnecessary bbox re-computation and nothing
more.
This commit is contained in:
parent
605daf23f2
commit
7e80111d92
|
@ -404,7 +404,7 @@ Item::propagate_show_hide ()
|
|||
/* bounding box may have changed while we were hidden */
|
||||
|
||||
if (_parent) {
|
||||
_parent->child_changed (false);
|
||||
_parent->child_changed (true);
|
||||
}
|
||||
|
||||
_canvas->item_shown_or_hidden (this);
|
||||
|
|
Loading…
Reference in New Issue
Block a user