mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-08 07:45:00 +01:00
Prevent invalid frame/child size allocation
This commit is contained in:
parent
ce1e05fc3d
commit
08092d22b4
1 changed files with 4 additions and 0 deletions
|
|
@ -154,6 +154,10 @@ Frame::on_size_allocate (Allocation& alloc)
|
|||
child_alloc.set_height (alloc.get_height () - pb_t * 2);
|
||||
}
|
||||
|
||||
if (child_alloc.get_width () < 1 || child_alloc.get_height () < 1) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (_w) {
|
||||
_w->size_allocate (child_alloc);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue