]> git.saurik.com Git - wxWidgets.git/commitdiff
make sure theme font info is reset if anything is changed
authorStefan Csomor <csomor@advancedconcepts.ch>
Sat, 20 Jun 2009 23:10:10 +0000 (23:10 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Sat, 20 Jun 2009 23:10:10 +0000 (23:10 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61148 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/osx/carbon/font.cpp

index e6fd9cc650ad03ce4e29859779a34dfe23a88da0..c7998cd5a70ab6227b255f29a53da2291149d06f 100644 (file)
@@ -252,6 +252,9 @@ void wxFontRefData::Free()
 #endif
     m_cgFont.reset();
 #if wxOSX_USE_ATSU_TEXT
+#if wxOSX_USE_CARBON
+    m_macThemeFontID = kThemeCurrentPortFont ;
+#endif
     if ( m_macATSUStyle )
     {
         ::ATSUDisposeStyle((ATSUStyle)m_macATSUStyle);