X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9eddec696f06d65a80e7339b2fae14fcb55f8383..aceeebce6d61c9f239a08ab53e669ad040deee96:/src/mgl/font.cpp diff --git a/src/mgl/font.cpp b/src/mgl/font.cpp index 1798b69d06..1b9410516b 100644 --- a/src/mgl/font.cpp +++ b/src/mgl/font.cpp @@ -27,11 +27,11 @@ #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/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)