]> git.saurik.com Git - wxWidgets.git/commitdiff
FromString should not fail on wxMac if facename empty.
authorJulian Smart <julian@anthemion.co.uk>
Tue, 10 Dec 2002 16:10:02 +0000 (16:10 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Tue, 10 Dec 2002 16:10:02 +0000 (16:10 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18177 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/fontcmn.cpp

index df7590c8061c919f29136aa07f2fee4f86bb5b25..467b7476586b351c4729a9c2d0a91f7c08c9014d 100644 (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) )