diff options
Diffstat (limited to 'src/Fl_Value_Input.cxx')
| -rw-r--r-- | src/Fl_Value_Input.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Fl_Value_Input.cxx b/src/Fl_Value_Input.cxx index eb741c1c7..1ac7a6958 100644 --- a/src/Fl_Value_Input.cxx +++ b/src/Fl_Value_Input.cxx @@ -136,6 +136,12 @@ Fl_Value_Input::Fl_Value_Input(int X, int Y, int W, int H, const char* l) set_flag(SHORTCUT_LABEL); } +Fl_Value_Input::~Fl_Value_Input() { + + if (input.parent() == (Fl_Group *)this) + input.parent(0); // *revert* ctor kludge! +} + // // End of "$Id$". // |
