(svn r23579) -Fix (r23525): Most up/down arrows stopped working.

This commit is contained in:
frosch
2011-12-17 20:52:07 +00:00
parent 82469946ab
commit 4e4a87bd3c
3 changed files with 7 additions and 7 deletions

View File

@@ -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();