minor fixes for the font info patch

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8935 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2000-12-18 03:54:25 +00:00
parent 30764ab524
commit 189e08b45a
2 changed files with 3 additions and 3 deletions

View File

@ -138,8 +138,8 @@ enum
Font_EnumFamilies,
Font_EnumFixedFamilies,
Font_EnumEncodings,
Font_CheckNativeToFromString
Font_Max,
Font_CheckNativeToFromString,
Font_Max
};
// ----------------------------------------------------------------------------

View File

@ -195,7 +195,7 @@ bool wxNativeFontInfo::FromString(const wxString& s)
token = tokenizer.GetNextToken();
if ( !token.ToLong(&l) )
return FALSE;
underlined = (int)l;
underlined = l != 0;
faceName = tokenizer.GetNextToken();
if( !faceName )