crash when trying to scroll the thumb which can't be scrolled fixed

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/wxUNIVERSAL@8199 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2000-08-27 17:09:58 +00:00
parent dac7332cc2
commit e4ced7154b

View File

@@ -78,12 +78,6 @@ wxScrollBarTimer::wxScrollBarTimer(wxStdScrollBarInputHandler *handler,
m_handler = handler;
m_action = action;
m_control = control;
// start scrolling immediately
Notify();
// and continue it later
Start(50); // FIXME make this delay configurable
}
void wxScrollBarTimer::Notify()
@@ -408,6 +402,11 @@ wxControlActions wxStdScrollBarInputHandler::Map(wxControl *control,
action,
event,
scrollbar);
// start scrolling immediately
m_timerScroll->Notify();
// and continue it later
m_timerScroll->Start(50); // FIXME hardcoded delay
}
else // no (immediate) action
{