]> git.saurik.com Git - wxWidgets.git/blobdiff - src/unix/fontutil.cpp
fixed xpm colour parsing bug due to case sensitive colour name comparison
[wxWidgets.git] / src / unix / fontutil.cpp
index d4a2c71f11357c20e43b1265182ccad0b331a03d..9411fc8df67349dba1539c427c3aa1f8b4feb719 100644 (file)
@@ -278,7 +278,9 @@ wxNativeFont wxLoadQueryNearestFont(int pointSize,
         if ( !wxGetNativeFontEncoding(encoding, &info) ||
              !wxTestFontEncoding(info) )
         {
         if ( !wxGetNativeFontEncoding(encoding, &info) ||
              !wxTestFontEncoding(info) )
         {
+#if wxUSE_FONTMAP
             if ( !wxTheFontMapper->GetAltForEncoding(encoding, &info) )
             if ( !wxTheFontMapper->GetAltForEncoding(encoding, &info) )
+#endif // wxUSE_FONTMAP
             {
                 // unspported encoding - replace it with the default
                 //
             {
                 // unspported encoding - replace it with the default
                 //