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:
@@ -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) )
|
||||
|
Reference in New Issue
Block a user