From 54cff14f87fd664ae88fa22dae333970957cfcd7 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Sun, 23 Jun 2024 08:50:29 +0200 Subject: Fix for "Fl_Pack should override clear() to set resizable(0)" (#993) --- FL/Fl_Pack.H | 3 +++ 1 file changed, 3 insertions(+) (limited to 'FL') diff --git a/FL/Fl_Pack.H b/FL/Fl_Pack.H index 1f8db0155..3da236b19 100644 --- a/FL/Fl_Pack.H +++ b/FL/Fl_Pack.H @@ -93,6 +93,9 @@ public: uchar horizontal() const {return type();} void resize(int X, int Y, int W, int H) FL_OVERRIDE; + /** Deletes all child widgets with Fl_Group::clear(). + And sets to NULL the resizable() widget. */ + void clear() { Fl_Group::clear(); resizable(NULL); } }; #endif -- cgit v1.2.3