From c4513b23896c274eb859e0856d7e391b04f77819 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 13 Aug 2003 22:41:31 +0000 Subject: [PATCH] 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 --- src/generic/scrlwing.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.50.0