X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/de6185e212ebc37ff11ff70278e3c4f68419b097..26af4dbd0a733de7df04c50acde5b4747f7fff24:/src/mgl/font.cpp diff --git a/src/mgl/font.cpp b/src/mgl/font.cpp index 7c4f8903ab..1b9410516b 100644 --- a/src/mgl/font.cpp +++ b/src/mgl/font.cpp @@ -26,13 +26,13 @@ #ifndef WX_PRECOMP #include "wx/log.h" #include "wx/utils.h" + #include "wx/settings.h" + #include "wx/cmndata.h" + #include "wx/gdicmn.h" #endif #include "wx/fontutil.h" -#include "wx/cmndata.h" -#include "wx/gdicmn.h" #include "wx/tokenzr.h" -#include "wx/settings.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)