]> git.saurik.com Git - wxWidgets.git/commitdiff
don't refresh the scrollbars unnecessarily
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 11 Jul 2001 23:21:10 +0000 (23:21 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 11 Jul 2001 23:21:10 +0000 (23:21 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10979 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/univ/winuniv.cpp

index 6039e08f44192ef4846a766a5f04242d4dcdd84c..b7b018abb0a83bbc3058de750e0e46ff4e00a6e4 100644 (file)
@@ -729,8 +729,13 @@ void wxWindow::SetScrollPos(int orient, int pos, bool refresh)
     wxCHECK_RET( scrollbar, _T("no scrollbar to set position for") );
 
     scrollbar->SetThumbPosition(pos);
+
+    // VZ: I think we can safely ignore this as we always refresh it
+    //     automatically whenever the value chanegs
+#if 0
     if ( refresh )
         Refresh();
+#endif
 }
 
 int wxWindow::GetScrollPos(int orient) const