diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2006-09-23 15:28:09 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2006-09-23 15:28:09 +0000 |
| commit | b04788a189a3cbead8974b69756a0b6fe081ba18 (patch) | |
| tree | af188d6217b940a593fc573676959e5af6f572a1 | |
| parent | f0180536b39921f7c5828351b12777a82b55fb4f (diff) | |
Check buttons did not redraw properly with box() set to FL_NO_BOX
(STR #1440)
src/Fl_Button.cxx:
- Fl_Button::value(): Use redraw_label() if box() is not set.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5482 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
| -rw-r--r-- | CHANGES | 2 | ||||
| -rw-r--r-- | src/Fl_Button.cxx | 3 |
2 files changed, 4 insertions, 1 deletions
@@ -1,5 +1,7 @@ CHANGES IN FLTK 1.1.8 + - Check buttons did not redraw properly with box() set to + FL_NO_BOX (STR #1440) - Added the Bluecurve-inspired scheme "gtk+". - Implemented alpha blending for WIN32 - Updated documentation (STR #1420, STR #1421) diff --git a/src/Fl_Button.cxx b/src/Fl_Button.cxx index 7ba692162..a4e545f42 100644 --- a/src/Fl_Button.cxx +++ b/src/Fl_Button.cxx @@ -40,7 +40,8 @@ int Fl_Button::value(int v) { clear_changed(); if (value_ != v) { value_ = v; - redraw(); + if (box()) redraw(); + else redraw_label(); return 1; } else { return 0; |
