]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/fontmap.cpp
corrected return value
[wxWidgets.git] / src / common / fontmap.cpp
index c93277a60de756377a8a999c129a35e9add9ef89..f40ea75e954a4d131fd43f072e43d0e8f2072304 100644 (file)
@@ -810,7 +810,7 @@ bool wxFontMapper::GetAltForEncoding(wxFontEncoding encoding,
     wxFontEncodingArray equiv = wxEncodingConverter::GetAllEquivalents(encoding);
     size_t count = equiv.GetCount();
     bool foundEquivEncoding = FALSE;
-    wxFontEncoding equivEncoding;
+    wxFontEncoding equivEncoding = wxFONTENCODING_SYSTEM;
     if ( count )
     {
         for ( size_t i = 0; i < count && !foundEquivEncoding; i++ )