diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2006-06-21 06:52:10 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2006-06-21 06:52:10 +0000 |
| commit | baa92d1d7da42270b6dafe8f6498f439e33394b6 (patch) | |
| tree | 28413ff306db6947daeac1127c42616754b3f965 /src | |
| parent | 77a20dbef3e748c5880116d24c84de9f10c1d40e (diff) | |
STR #1330: Repeat button now cancels timeout if it should get deactivated during a callback
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5219 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_Repeat_Button.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Fl_Repeat_Button.cxx b/src/Fl_Repeat_Button.cxx index 638cc4c81..2252a3a24 100644 --- a/src/Fl_Repeat_Button.cxx +++ b/src/Fl_Repeat_Button.cxx @@ -49,6 +49,8 @@ int Fl_Repeat_Button::handle(int event) { if (Fl::visible_focus()) Fl::focus(this); newval = Fl::event_inside(this); J1: + if (!active()) + newval = 0; if (value(newval)) { if (newval) { Fl::add_timeout(INITIALREPEAT,repeat_callback,this); |
