X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9016f3ad7338e0e61ee30de5618302404bfca1ef..34b4899df5053a53482f18d8c97a2b1913019d30:/src/msw/checkbox.cpp diff --git a/src/msw/checkbox.cpp b/src/msw/checkbox.cpp index 5dba25577d..bc59d8ad1a 100644 --- a/src/msw/checkbox.cpp +++ b/src/msw/checkbox.cpp @@ -200,7 +200,7 @@ wxSize wxCheckBox::DoGetBestSize() const int wCheckbox, hCheckbox; if ( !str.empty() ) { - wxClientDC dc(wx_const_cast(wxCheckBox *, this)); + wxClientDC dc(const_cast(this)); dc.SetFont(GetFont()); dc.GetMultiLineTextExtent(GetLabelText(str), &wCheckbox, &hCheckbox); wCheckbox += s_checkSize + GetCharWidth();