]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed DoGetBestSize -- it returned too small bounding box
authorVáclav Slavík <vslavik@fastmail.fm>
Sat, 11 Mar 2000 19:31:03 +0000 (19:31 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Sat, 11 Mar 2000 19:31:03 +0000 (19:31 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6626 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/checkbox.cpp

index 04856bb161197294cf204ab74e170724c5e0d897..a92fc1b2d6238baea46d66002a6cace8cc727731 100644 (file)
@@ -151,7 +151,7 @@ wxSize wxCheckBox::DoGetBestSize() const
 {
     int wCheckbox, hCheckbox;
 
-    wxString str = wxGetWindowText(GetHWND());
+    wxString str = wxGetWindowText(GetHWND()) + " ";
 
     if ( !str.IsEmpty() )
     {