]> git.saurik.com Git - wxWidgets.git/commitdiff
minor fixes for the font info patch
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 18 Dec 2000 03:54:25 +0000 (03:54 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 18 Dec 2000 03:54:25 +0000 (03:54 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8935 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/font/font.cpp
src/common/fontcmn.cpp

index 4322827f0a9f26649e790b81b5e42813e95aeabb..4736134731a22f7d6af0934d21768207a0a476c1 100644 (file)
@@ -138,8 +138,8 @@ enum
     Font_EnumFamilies,
     Font_EnumFixedFamilies,
     Font_EnumEncodings,
-    Font_CheckNativeToFromString
-    Font_Max,
+    Font_CheckNativeToFromString,
+    Font_Max
 };
 
 // ----------------------------------------------------------------------------
index 812c56c42c473c0777c75e5afb78d03a6e6ab90c..c1eec3bd2519963ec3ffaaf773947fefa839a984 100644 (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 )