mirror of
https://github.com/fltk/fltk.git
synced 2026-05-22 07:01:34 +08:00
Fix Fl_Flex unsetting of set_size()
Don't add the widget to the array if size == 0 (unset) but it has not been in the array (or it's called twice).
This commit is contained in:
@@ -287,6 +287,9 @@ void Fl_Flex::set_size(Fl_Widget *w, int size) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (size == 0)
|
||||
return;
|
||||
|
||||
// add to array of fixed size widgets
|
||||
if (set_size_size_ == set_size_alloc_) {
|
||||
set_size_alloc_ = alloc_size(set_size_alloc_);
|
||||
|
||||
Reference in New Issue
Block a user