From 45e13c7fb62cfe4b69269a1da3f8e9cf1d6de2dd Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Tue, 23 May 2006 11:24:18 +0000 Subject: [PATCH] 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 --- src/univ/winuniv.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/univ/winuniv.cpp b/src/univ/winuniv.cpp index 11a647cdf8..6297621fd0 100644 --- a/src/univ/winuniv.cpp +++ b/src/univ/winuniv.cpp @@ -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 -- 2.45.2