]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/fontmap.cpp
make it possible to use wxToolBarSimple as wxToolBar with wxUniv
[wxWidgets.git] / src / common / fontmap.cpp
index 6b2e3b81deceef99658494b0a3f22f1a54047915..977f7b2c44cb9c85327ecfecee7d945a3de83a7e 100644 (file)
@@ -738,6 +738,7 @@ bool wxFontMapper::GetAltForEncoding(wxFontEncoding encoding,
 #endif // wxUSE_CONFIG
 
     // ask the user
+#if wxUSE_FONTDLG
     if ( interactive )
     {
         wxString title(m_titleDialog);
@@ -797,6 +798,7 @@ bool wxFontMapper::GetAltForEncoding(wxFontEncoding encoding,
         }
     }
     //else: we're in non-interactive mode
+#endif // wxUSE_FONTDLG
 
     // now try the default mappings:
     wxFontEncodingArray equiv = wxEncodingConverter::GetAllEquivalents(encoding);