X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ff654490b7cb185631a1dc4621094d88643ccf41..b97d1013cf34ee9e844fed490cca849c41bd4f8f:/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; }