]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/textctrl.cpp
Don't call StartingKey if the key was F2
[wxWidgets.git] / src / os2 / textctrl.cpp
index be45467059a00b41b823ed7a70da71c3e598dbd6..d315a58b5caf08293ec3da7809e4dac4e9213bf5 100644 (file)
@@ -1188,8 +1188,9 @@ wxSize wxTextCtrl::DoGetBestSize() const
 {
     int                             nCx;
     int                             nCy;
 {
     int                             nCx;
     int                             nCy;
+    wxFont                          vFont = (wxFont)GetFont();
 
 
-    wxGetCharSize(GetHWND(), &nCx, &nCy, (wxFont*)&GetFont());
+    wxGetCharSize(GetHWND(), &nCx, &nCy, &vFont);
 
     int                             wText = DEFAULT_ITEM_WIDTH;
     int                             hText = (int)(EDIT_HEIGHT_FROM_CHAR_HEIGHT(nCy) * .8);
 
     int                             wText = DEFAULT_ITEM_WIDTH;
     int                             hText = (int)(EDIT_HEIGHT_FROM_CHAR_HEIGHT(nCy) * .8);