From: Vadim Zeitlin Date: Wed, 13 Aug 2003 22:41:31 +0000 (+0000) Subject: continue setting scrollbars even if only width/height changes, not both of them ... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/c4513b23896c274eb859e0856d7e391b04f77819?ds=inline continue setting scrollbars even if only width/height changes, not both of them (patch 788017) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22829 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/generic/scrlwing.cpp b/src/generic/scrlwing.cpp index 46b409c65d..bf9a58d3fa 100644 --- a/src/generic/scrlwing.cpp +++ b/src/generic/scrlwing.cpp @@ -722,7 +722,7 @@ void wxScrollHelper::AdjustScrollbars() oldh = h; GetTargetSize( &w, &h ); - } while ( w != oldw && h != oldh ); + } while ( w != oldw || h != oldh ); #ifdef __WXMOTIF__ // Sorry, some Motif-specific code to implement a backing pixmap