diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2010-02-28 14:57:10 +0000 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2010-02-28 14:57:10 +0000 |
| commit | 6a7003164704a87872ae45d141736f3006dc39a3 (patch) | |
| tree | 1f970b2396f80d32978a407d9360288926c9e1b9 /src | |
| parent | 0f891bc48b827bea6455e58e23f8673134c0bf50 (diff) | |
Removed saving the flags() in Fl_Window::iconlabel(const char *iname) because
this could result in wrong flags() contents after return. Fl_Widget::label()
(that is called internally) takes care of copied labels and sets the flags()
appropriately. See also STR #2161.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7176 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_Window.cxx | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/Fl_Window.cxx b/src/Fl_Window.cxx index 692aa255e..a06ac29cd 100644 --- a/src/Fl_Window.cxx +++ b/src/Fl_Window.cxx @@ -156,9 +156,7 @@ void Fl_Window::copy_label(const char *a) { void Fl_Window::iconlabel(const char *iname) { - unsigned saveflags = flags(); label(label(), iname); - set_flag(saveflags); } // the Fl::atclose pointer is provided for back compatibility. You |
