X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/44370b509e1b27526865e367788e3b1c0f65aa13..a39815bd30c62e13089f318028c9ee547940c4ad:/src/msw/font.cpp diff --git a/src/msw/font.cpp b/src/msw/font.cpp index d995db91ac..376b8b3b87 100644 --- a/src/msw/font.cpp +++ b/src/msw/font.cpp @@ -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 )