diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2006-06-28 10:23:33 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2006-06-28 10:23:33 +0000 |
| commit | d20a41681d9e50c6516b1543e443f5909b25ff96 (patch) | |
| tree | 86712bde995bf573cd6f7b2003dca355af83fba3 /src/Fl_Window.cxx | |
| parent | a794dcf8ee25956c7936663e758b702dcade8da1 (diff) | |
Fixed Fl_Window::copy_label() losing copy (STR #1332)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5251 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Window.cxx')
| -rw-r--r-- | src/Fl_Window.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/Fl_Window.cxx b/src/Fl_Window.cxx index 5425aaa1d..84b3d119f 100644 --- a/src/Fl_Window.cxx +++ b/src/Fl_Window.cxx @@ -100,10 +100,11 @@ int Fl_Window::y_root() const { void Fl_Window::draw() { const char *savelabel = label(); - uchar saveflags = flags(); + int saveflags = flags(); int savex = x(); x(0); int savey = y(); y(0); // Make sure we don't draw the window title in the window background... + clear_flag(COPIED_LABEL); // do not free copied labels! Fl_Widget::label(0); Fl_Group::draw(); #ifdef __APPLE_QUARTZ__ @@ -133,7 +134,9 @@ void Fl_Window::draw() { x(savex); } -void Fl_Window::label(const char *name) {label(name, iconlabel());} +void Fl_Window::label(const char *name) { + label(name, iconlabel()); +} void Fl_Window::copy_label(const char *a) { if (flags() & COPIED_LABEL) { |
