]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/listbox.cpp
Don't call StartingKey if the key was F2
[wxWidgets.git] / src / os2 / listbox.cpp
index 350cea8f687b69b656d4730253377ff903775922..1d49e7c6016b29910d104001ccbc369aa32402b3 100644 (file)
@@ -725,6 +725,7 @@ wxSize wxListBox::DoGetBestSize() const
     int                             nListbox = 0;
     int                             nCx;
     int                             nCy;
+    wxFont                          vFont = (wxFont)GetFont();
 
     for (int i = 0; i < m_nNumItems; i++)
     {
@@ -751,7 +752,7 @@ wxSize wxListBox::DoGetBestSize() const
     wxGetCharSize( GetHWND()
                   ,&nCx
                   ,&nCy
-                  ,(wxFont*)&GetFont()
+                  ,&vFont
                  );
     nListbox += 3 * nCx;