Applied patch [ 1489741 ] Bugfix for wxScrolledWindow::SetScrollRate in wxUniversal

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39287 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart 2006-05-23 11:24:18 +00:00
parent 063d8a571c
commit 45e13c7fb6

View File

@ -931,9 +931,9 @@ void wxWindow::SetScrollbar(int orient,
void wxWindow::SetScrollPos(int orient, int pos, bool WXUNUSED(refresh))
{
wxScrollBar *scrollbar = GetScrollbar(orient);
wxCHECK_RET( scrollbar, _T("no scrollbar to set position for") );
scrollbar->SetThumbPosition(pos);
if (scrollbar)
scrollbar->SetThumbPosition(pos);
// VZ: I think we can safely ignore this as we always refresh it
// automatically whenever the value chanegs