]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/fontcmn.cpp
don't crash on weird line endings like \r\r\n
[wxWidgets.git] / src / common / fontcmn.cpp
index 7c093918c570fcbb2b5c346af57ac6c34cd591a3..f83bb4701fa6cf4c603f37bf97c91b33d15eb362 100644 (file)
@@ -671,7 +671,10 @@ bool wxNativeFontInfo::FromUserString(const wxString& s)
 
     wxString face;
     unsigned long size;
-    bool weightfound = false, pointsizefound = false, encodingfound = false;
+    bool weightfound = false, pointsizefound = false;
+#if wxUSE_FONTMAP
+    bool encodingfound = false;
+#endif
 
     while ( tokenizer.HasMoreTokens() )
     {