From 9cc79dd629918578fe8410d6597e4abaaf7afaed Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 23 Apr 2007 22:19:12 +0000 Subject: [PATCH] fix bug introduced in wxFontRefData::SetNativeFontInfo() in 1.89: remember that we do have native font info git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45613 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/font.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/msw/font.cpp b/src/msw/font.cpp index a457798069..ffddf1c6a6 100644 --- a/src/msw/font.cpp +++ b/src/msw/font.cpp @@ -318,7 +318,12 @@ public: { return m_nativeFontInfo; } void SetNativeFontInfo(const wxNativeFontInfo& nativeFontInfo) - { Free(); m_nativeFontInfo = nativeFontInfo; } + { + Free(); + + m_nativeFontInfo = nativeFontInfo; + m_nativeFontInfoOk = true; + } protected: // common part of all ctors