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); }