13
0

Canvas: fix recursive calling of Item::size_allocate()

ConstraintPacker is the one Item-derivative that should NOT call Item::size_allocate_children()
because it just did the size computation for its children and called their
::constrained() method, which in turns calls size_allocate() with the correct size
This commit is contained in:
Paul Davis 2020-07-12 00:00:27 -06:00
parent dbe37d2752
commit 86a31e34ba

View File

@ -307,7 +307,10 @@ ConstraintPacker::size_allocate (Rect const & r)
PBD::Unwinder<bool> uw (in_alloc, true);
double expanded_size;
Item::size_allocate (r);
if (_layout_sensitive) {
_position = Duple (r.x0, r.y0);
_allocation = r;
}
if (!packed.empty()) {