Skip to content

Commit

Permalink
Check buttons did not redraw properly with box() set to FL_NO_BOX
Browse files Browse the repository at this point in the history
(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
  • Loading branch information
michaelrsweet committed Sep 23, 2006
1 parent f018053 commit b04788a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGES
@@ -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)
Expand Down
3 changes: 2 additions & 1 deletion src/Fl_Button.cxx
Expand Up @@ -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;
Expand Down

0 comments on commit b04788a

Please sign in to comment.