use GetLabelText() instead of wxStripMenuCodes() to avoid stripping the part of the string after TAB
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40331 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -215,7 +215,7 @@ wxSize wxCheckBox::DoGetBestSize() const
|
||||
int wCheckbox, hCheckbox;
|
||||
if ( !str.empty() )
|
||||
{
|
||||
GetTextExtent(wxStripMenuCodes(str), &wCheckbox, &hCheckbox);
|
||||
GetTextExtent(GetLabelText(str), &wCheckbox, &hCheckbox);
|
||||
wCheckbox += s_checkSize + GetCharWidth();
|
||||
|
||||
if ( hCheckbox < s_checkSize )
|
||||
|
Reference in New Issue
Block a user