]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/fontmap.cpp
No res-include for rpmspec wx24dsp
[wxWidgets.git] / src / common / fontmap.cpp
index a30c4f14bbcae183bfa307db5698b8e873e57d2d..be6bf5703f7adacf24eb80d328ae7b309d3c9f4b 100644 (file)
@@ -51,6 +51,7 @@
 #include "wx/msgdlg.h"
 #include "wx/fontdlg.h"
 #include "wx/choicdlg.h"
+#include "wx/encinfo.h"
 
 #include "wx/encconv.h"
 
@@ -226,7 +227,7 @@ wxFontMapper::CharsetToEncoding(const wxString& charset, bool interactive)
 
             // remember the alt encoding for this charset -- or remember that
             // we don't know it
-            long value = n == -1 ? wxFONTENCODING_UNKNOWN : (long)encoding;
+            long value = n == -1 ? (long)wxFONTENCODING_UNKNOWN : (long)encoding;
             if ( !config->Write(charset, value) )
             {
                 wxLogError(_("Failed to remember the encoding for the charset '%s'."), charset.c_str());