]> git.saurik.com Git - wxWidgets.git/commitdiff
fix bug introduced in wxFontRefData::SetNativeFontInfo() in 1.89: remember that we...
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 23 Apr 2007 22:19:12 +0000 (22:19 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 23 Apr 2007 22:19:12 +0000 (22:19 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45613 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/font.cpp

index a457798069b59bb2ed13191f4e00ab7676b81914..ffddf1c6a6f579e26e78133d9bc2c1a5acd784c8 100644 (file)
@@ -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