]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/button.cpp
Delay checking for the requested sash position until the first
[wxWidgets.git] / src / os2 / button.cpp
index 7e0a49ebf05af21720e76140344908e14cbac59a..cb6894c3e6aa72da55f7444dc13db877bd0214cb 100644 (file)
@@ -162,7 +162,7 @@ wxSize wxButton::DoGetBestSize() const
     //
     // Need a little extra to make it look right
     //
-    nHeightButton += nHeightChar/1.5;
+    nHeightButton += (int)(nHeightChar/1.5);
 
     if (!HasFlag(wxBU_EXACTFIT))
     {