]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/textctrl.cpp
Committing in .
[wxWidgets.git] / src / os2 / textctrl.cpp
index 20aeec6bb9a46bf5ed0300c8e6cfa330be63c21a..1069c438821ef32825729007e4a767a8a933b1e9 100644 (file)
@@ -798,10 +798,10 @@ bool wxTextCtrl::AcceptsFocus() const
     return IsEditable() && wxControl::AcceptsFocus();
 }
 
-wxSize wxTextCtrl::DoGetBestSize()
+wxSize wxTextCtrl::DoGetBestSize() const
 {
     int cx, cy;
-    wxGetCharSize(GetHWND(), &cx, &cy, &GetFont());
+    wxGetCharSize(GetHWND(), &cx, &cy, (wxFont*)&GetFont());
 
     int wText = DEFAULT_ITEM_WIDTH;