From d45720c55f091f9b1e78a19da89e157bfa2c7c17 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 14 Sep 2002 21:07:49 +0000 Subject: [PATCH] set size if it's initially == wxDefaultSize() in MSWCreateControl git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@17183 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/control.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/msw/control.cpp b/src/msw/control.cpp index 6593d6eed1..ba76513c75 100644 --- a/src/msw/control.cpp +++ b/src/msw/control.cpp @@ -156,7 +156,7 @@ bool wxControl::MSWCreateControl(const wxChar *classname, InheritAttributes(); // set the size now if no initial size specified - if ( w == 0 || h == 0 ) + if ( w <= 0 || h <= 0 ) { SetBestSize(size); } -- 2.50.0