]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/fontdlg.cpp
Weekly catchup as well as better font and fontdlg support
[wxWidgets.git] / src / os2 / fontdlg.cpp
index 1cb0f7981b0bf46dceb686d08dc101c2f48c85de..9b796e6527df4be18931695deb82a45556d77052 100644 (file)
@@ -81,14 +81,16 @@ int wxFontDialog::ShowModal()
         // Debugging
         //
         wxFont                      vChosenFont(vInfo);
+
         int                         nFamily;
-        int                         nPointSize;
+        int                         nPointSize = vFontDlg.lEmHeight;
         int                         nStyle;
         int                         nWeight;
         bool                        bUnderlined;
         wxString                    sFaceName;
         wxNativeFontInfo*           pInfo;
 
+        vChosenFont.SetPointSize(nPointSize);
         nFamily = vChosenFont.GetFamily();
         nPointSize = vChosenFont.GetPointSize();
         nStyle = vChosenFont.GetStyle();