From 4e4a87bd3c15da581b82549cd38451df20e7687d Mon Sep 17 00:00:00 2001 From: frosch Date: Sat, 17 Dec 2011 20:52:07 +0000 Subject: (svn r23579) -Fix (r23525): Most up/down arrows stopped working. --- src/toolbar_gui.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/toolbar_gui.cpp') diff --git a/src/toolbar_gui.cpp b/src/toolbar_gui.cpp index afe22948f..81150d263 100644 --- a/src/toolbar_gui.cpp +++ b/src/toolbar_gui.cpp @@ -1039,7 +1039,7 @@ static CallBackFunction ToolbarScenDatePanel(Window *w) static CallBackFunction ToolbarScenDateBackward(Window *w) { /* don't allow too fast scrolling */ - if ((w->flags & WF_TIMEOUT) && w->timeout_timer <= 1) { + if (!(w->flags & WF_TIMEOUT) || w->timeout_timer <= 1) { w->HandleButtonClick(WID_TE_DATE_BACKWARD); w->SetDirty(); @@ -1053,7 +1053,7 @@ static CallBackFunction ToolbarScenDateBackward(Window *w) static CallBackFunction ToolbarScenDateForward(Window *w) { /* don't allow too fast scrolling */ - if ((w->flags & WF_TIMEOUT) && w->timeout_timer <= 1) { + if (!(w->flags & WF_TIMEOUT) || w->timeout_timer <= 1) { w->HandleButtonClick(WID_TE_DATE_FORWARD); w->SetDirty(); -- cgit v1.2.3-54-g00ecf