X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ff654490b7cb185631a1dc4621094d88643ccf41..f7ae43f080576ef142d3884073df298294860328:/src/unix/fontutil.cpp diff --git a/src/unix/fontutil.cpp b/src/unix/fontutil.cpp index 7275663fe2..713510290d 100644 --- a/src/unix/fontutil.cpp +++ b/src/unix/fontutil.cpp @@ -316,9 +316,11 @@ bool wxNativeFontInfo::FromString(const wxString& s) description = pango_font_description_from_string(wxPANGO_CONV(str)); +#if wxUSE_FONTENUM // ensure a valid facename is selected if (!wxFontEnumerator::IsValidFacename(GetFaceName())) SetFaceName(wxNORMAL_FONT->GetFaceName()); +#endif // wxUSE_FONTENUM return true; }