]> git.saurik.com Git - wxWidgets.git/commitdiff
Applied patch [ 1489741 ] Bugfix for wxScrolledWindow::SetScrollRate in wxUniversal
authorJulian Smart <julian@anthemion.co.uk>
Tue, 23 May 2006 11:24:18 +0000 (11:24 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Tue, 23 May 2006 11:24:18 +0000 (11:24 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39287 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/univ/winuniv.cpp

index 11a647cdf84081749efbec10d05c0c34822abd4f..6297621fd0987ed604d8fa6682693ad88f4f1b18 100644 (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