]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/settings.cpp
wxSplitterWindow mouse capture improvements and cleanup.
[wxWidgets.git] / src / msw / settings.cpp
index 99256920522702e789e10319216ed79e2e15a922..0092138732932c88189ee20c2552e271c8ff2897 100644 (file)
@@ -291,7 +291,12 @@ wxFont wxSystemSettingsNative::GetFont(wxSystemFont index)
         gs_fontDefault = new wxFont(font);
     }
 
         gs_fontDefault = new wxFont(font);
     }
 
-    wxASSERT(font.IsOk() && wxFontEnumerator::IsValidFacename(font.GetFaceName()));
+    wxASSERT(font.IsOk());
+
+#if wxUSE_FONTENUM
+    wxASSERT(wxFontEnumerator::IsValidFacename(font.GetFaceName()));
+#endif // wxUSE_FONTENUM
+
     return font;
 #endif // __WXWINCE__/!__WXWINCE__
 }
     return font;
 #endif // __WXWINCE__/!__WXWINCE__
 }