X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/18f3decb46a80b38801dd6590d08eb525d3a3963..5819f832e6fc616ea3e365376ce71ed3c69e023a:/src/mac/classic/font.cpp diff --git a/src/mac/classic/font.cpp b/src/mac/classic/font.cpp index 7f4f120eb8..e2757af968 100644 --- a/src/mac/classic/font.cpp +++ b/src/mac/classic/font.cpp @@ -15,11 +15,15 @@ #pragma hdrstop #endif -#include "wx/string.h" #include "wx/font.h" + +#ifndef WX_PRECOMP + #include "wx/string.h" + #include "wx/utils.h" + #include "wx/gdicmn.h" +#endif + #include "wx/fontutil.h" -#include "wx/gdicmn.h" -#include "wx/utils.h" #include "wx/fontutil.h" @@ -166,7 +170,7 @@ wxFontRefData::~wxFontRefData() void wxFontRefData::MacFindFont() { - if( m_faceName.Length() == 0 ) + if( m_faceName.empty() ) { switch( m_family ) { @@ -335,13 +339,15 @@ void wxFont::SetWeight(int weight) RealizeResource(); } -void wxFont::SetFaceName(const wxString& faceName) +bool wxFont::SetFaceName(const wxString& faceName) { Unshare(); M_FONTDATA->m_faceName = faceName; RealizeResource(); + + return wxFontBase::SetFaceName(faceName); } void wxFont::SetUnderlined(bool underlined)