Prevent invalid frame/child size allocation
This commit is contained in:
parent
ce1e05fc3d
commit
08092d22b4
@ -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…
Reference in New Issue
Block a user