From 1f6665c4a77dfba884717fec82a3e86df8e7453c Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Tue, 10 Dec 2002 16:10:02 +0000 Subject: [PATCH] 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 --- src/common/fontcmn.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/common/fontcmn.cpp b/src/common/fontcmn.cpp index 9f09b4c8e1..b58bd2f1e4 100644 --- a/src/common/fontcmn.cpp +++ b/src/common/fontcmn.cpp @@ -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) )