summaryrefslogtreecommitdiff
path: root/src/Fl_Value_Input.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/Fl_Value_Input.cxx')
-rw-r--r--src/Fl_Value_Input.cxx6
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$".
//