diff options
Diffstat (limited to 'src/Fl_Window.cxx')
| -rw-r--r-- | src/Fl_Window.cxx | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/src/Fl_Window.cxx b/src/Fl_Window.cxx index 7ca25a220..f5c295d77 100644 --- a/src/Fl_Window.cxx +++ b/src/Fl_Window.cxx @@ -139,22 +139,16 @@ void Fl_Window::draw() { } void Fl_Window::label(const char *name) { - label(name, iconlabel()); + label(name, iconlabel()); // platform dependent } void Fl_Window::copy_label(const char *a) { - if (flags() & COPIED_LABEL) { - free((void *)label()); - clear_flag(COPIED_LABEL); - } - if (a) a = strdup(a); - label(a, iconlabel()); - set_flag(COPIED_LABEL); + Fl_Widget::copy_label(a); + label(label(), iconlabel()); // platform dependent } - void Fl_Window::iconlabel(const char *iname) { - label(label(), iname); + label(label(), iname); // platform dependent } // the Fl::atclose pointer is provided for back compatibility. You |
