X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ce5d92e15071d65b430f11efa548076beeb9673c..137c8bde085d6d5b7c459902d2ea1a198ab48765:/src/mgl/font.cpp diff --git a/src/mgl/font.cpp b/src/mgl/font.cpp index 2cce8212f1..1b9410516b 100644 --- a/src/mgl/font.cpp +++ b/src/mgl/font.cpp @@ -28,10 +28,10 @@ #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)