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:
parent
84023968e5
commit
0a9f0ef7d0
@ -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) )
|
||||
|
Loading…
Reference in New Issue
Block a user