FromString should not fail on wxMac if facename empty.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@18177 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2002-12-10 16:10:02 +00:00
parent d0041c5d85
commit 1f6665c4a7

View File

@@ -296,8 +296,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) )