]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/stattextcmn.cpp
handle correctly never/always shown scrollbars in GetClientSize()
[wxWidgets.git] / src / common / stattextcmn.cpp
index f7b6a787ddfac3f539310f5fafc7c7e731820923..b2ac7a044cb4281986b5b87a0c426fd37266528d 100644 (file)
@@ -323,7 +323,7 @@ wxString wxStaticTextBase::Ellipsize(const wxString& label) const
         return label;
     }
 
-    wxClientDC dc(wx_const_cast(wxStaticTextBase*, this));
+    wxClientDC dc(const_cast<wxStaticTextBase*>(this));
     dc.SetFont(GetFont());
 
     wxArrayInt charOffsets;