FromString should not fail on wxMac if facename empty.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18177 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart 2002-12-10 16:10:02 +00:00
parent 84023968e5
commit 0a9f0ef7d0

View File

@ -323,8 +323,11 @@ bool wxNativeFontInfo::FromString(const wxString& s)
underlined = l != 0;
faceName = tokenizer.GetNextToken();
#ifndef __WXMAC__
if( !faceName )
return FALSE;
#endif
token = tokenizer.GetNextToken();
if ( !token.ToLong(&l) )