]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mgl/font.cpp
reset the internal flags at the end of DoSetValue(), whatever happened in the callback
[wxWidgets.git] / src / mgl / font.cpp
index 2cce8212f1333712be208f42e9a07f52d9762085..1b9410516b98e21f9cc65a809478869ff7770f7f 100644 (file)
     #include "wx/utils.h"
     #include "wx/settings.h"
     #include "wx/cmndata.h"
+    #include "wx/gdicmn.h"
 #endif
 
 #include "wx/fontutil.h"
-#include "wx/gdicmn.h"
 #include "wx/tokenzr.h"
 #include "wx/mgl/private.h"
 
@@ -311,12 +311,14 @@ void wxFont::SetWeight(int weight)
     M_FONTDATA->m_valid = false;
 }
 
-void wxFont::SetFaceName(const wxString& faceName)
+bool wxFont::SetFaceName(const wxString& faceName)
 {
     AllocExclusive();
 
     M_FONTDATA->m_faceName = faceName;
     M_FONTDATA->m_valid = false;
+
+    return wxFontBase::SetFaceName(faceName);
 }
 
 void wxFont::SetUnderlined(bool underlined)