]> git.saurik.com Git - wxWidgets.git/blobdiff - src/univ/winuniv.cpp
call gtk_toolbar_set_tooltips() from GtkSetStyle(); removed erroneous wxTB_TOOLTIPS
[wxWidgets.git] / 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