]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/checkbox.cpp
added (wxMSW-only) wxToolTip::SetMaxWidth() and improve its default behaviour (#2817)
[wxWidgets.git] / src / msw / checkbox.cpp
index 5dba25577d664174fb1eeba89fd5e8bb20938522..bc59d8ad1ae9ecab4a63e09dd65cc82b5d9ff599 100644 (file)
@@ -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<wxCheckBox *>(this));
         dc.SetFont(GetFont());
         dc.GetMultiLineTextExtent(GetLabelText(str), &wCheckbox, &hCheckbox);
         wCheckbox += s_checkSize + GetCharWidth();