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:
parent
dbe37d2752
commit
86a31e34ba
@ -307,7 +307,10 @@ ConstraintPacker::size_allocate (Rect const & r)
|
|||||||
PBD::Unwinder<bool> uw (in_alloc, true);
|
PBD::Unwinder<bool> uw (in_alloc, true);
|
||||||
double expanded_size;
|
double expanded_size;
|
||||||
|
|
||||||
Item::size_allocate (r);
|
if (_layout_sensitive) {
|
||||||
|
_position = Duple (r.x0, r.y0);
|
||||||
|
_allocation = r;
|
||||||
|
}
|
||||||
|
|
||||||
if (!packed.empty()) {
|
if (!packed.empty()) {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user