From 01e92d1232b2911a47cdd2aa55091d7c82a8bc03 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 26 Apr 2000 12:49:07 +0000 Subject: [PATCH] patch from Kristjan Jonsson to wxCheckBox::DoGetBestSize() git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7277 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/checkbox.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/msw/checkbox.cpp b/src/msw/checkbox.cpp index a92fc1b2d6..129a97eec0 100644 --- a/src/msw/checkbox.cpp +++ b/src/msw/checkbox.cpp @@ -151,12 +151,12 @@ wxSize wxCheckBox::DoGetBestSize() const { int wCheckbox, hCheckbox; - wxString str = wxGetWindowText(GetHWND()) + " "; + wxString str = wxGetWindowText(GetHWND()); if ( !str.IsEmpty() ) { GetTextExtent(str, &wCheckbox, &hCheckbox); - wCheckbox += CHECK_SIZE; + wCheckbox += CHECK_SIZE + GetCharWidth(); if ( hCheckbox < CHECK_SIZE ) hCheckbox = CHECK_SIZE;