]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/fontmap.cpp
allow compilation with wxUSE_CHOICEDLG set to 0
[wxWidgets.git] / src / common / fontmap.cpp
index 8be47e51c2085ac009b0a897f70451ac29c048ca..0772cf2839c1ffdfe68a641f31cfc39be27d75e3 100644 (file)
@@ -175,6 +175,7 @@ wxFontMapper::CharsetToEncoding(const wxString& charset, bool interactive)
         // chosen to suppress this the last time)
         encoding = wxFONTENCODING_SYSTEM;
     }
+#if wxUSE_CHOICEDLG
     else if ( (encoding == wxFONTENCODING_SYSTEM) && interactive )
     {
         // prepare the dialog data
@@ -233,6 +234,9 @@ wxFontMapper::CharsetToEncoding(const wxString& charset, bool interactive)
         }
 #endif // wxUSE_CONFIG
     }
+#else
+    wxUnusedVar(interactive);
+#endif // wxUSE_CHOICEDLG
 
     return (wxFontEncoding)encoding;
 }