]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/font.cpp
missing commit, see #10269
[wxWidgets.git] / src / msw / font.cpp
index d995db91ac7e54cd9f4fc5851f517a4aa55447f3..376b8b3b870865afb7fd5eba664763d96417f6c1 100644 (file)
@@ -279,7 +279,7 @@ protected:
     wxString GetMSWFaceName() const
     {
         ScreenHDC hdc;
-        SelectInHDC selectFont(hdc, m_hFont);
+        SelectInHDC selectFont(hdc, (HFONT)GetHFONT());
 
         UINT otmSize = GetOutlineTextMetrics(hdc, 0, NULL);
         if ( !otmSize )