From 7d29741468f11b820d8e5a91a3755f4bb282bcc2 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 11 Jul 2001 23:21:10 +0000 Subject: [PATCH] don't refresh the scrollbars unnecessarily git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10979 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/univ/winuniv.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/univ/winuniv.cpp b/src/univ/winuniv.cpp index 6039e08f44..b7b018abb0 100644 --- a/src/univ/winuniv.cpp +++ b/src/univ/winuniv.cpp @@ -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 -- 2.50.0