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
This commit is contained in:
Albrecht Schlosser 2010-02-28 14:57:10 +00:00
parent 0f891bc48b
commit 6a70031647
2 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,7 @@
CHANGES IN FLTK 1.3.0
- Fixed possibility of wrong flags() in Fl_Window::iconlabel()
(STR #2161)
- Fixed Scrollbar events when max is less than min (STR #2283)
- Added argument-less constructor in Fuid Widget Class
- Fixed menu item counting issue in Fluid (STR #2322)

View File

@ -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