X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bdf5c30deb87129df7fb8a1a782d2b20dba0a816..05159a2750ed2cc5945a85bc5fc6849ad1a30e75:/src/msw/control.cpp 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); }