]> git.saurik.com Git - wxWidgets.git/blobdiff - src/unix/fontenum.cpp
More build system polishing.. mostly. Some stuff ported over from
[wxWidgets.git] / src / unix / fontenum.cpp
index c68984623b1d6588d64ec324aa48e48b200e7a6e..63bcf5c4fccfa7a144b5c91ccb0a5a8a220d1194 100644 (file)
@@ -23,8 +23,8 @@
 
 #include "wx/defs.h"
 #include "wx/dynarray.h"
 
 #include "wx/defs.h"
 #include "wx/dynarray.h"
-#include "wx/regex.h"
 #include "wx/string.h"
 #include "wx/string.h"
+#include "wx/regex.h"
 #include "wx/utils.h"
 
 #include "wx/fontmap.h"
 #include "wx/utils.h"
 
 #include "wx/fontmap.h"
@@ -106,7 +106,7 @@ static bool ProcessFamiliesFromFontList(wxFontEnumerator *This,
     {
         char *font = fonts[n];
 #if wxUSE_REGEX
     {
         char *font = fonts[n];
 #if wxUSE_REGEX
-        if ( re.Matches(font) )
+        if ( !re.Matches(font) )
 #else // !wxUSE_REGEX
         if ( !wxString(font).Matches(wxT("-*-*-*-*-*-*-*-*-*-*-*-*-*-*")) )
 #endif // wxUSE_REGEX/!wxUSE_REGEX
 #else // !wxUSE_REGEX
         if ( !wxString(font).Matches(wxT("-*-*-*-*-*-*-*-*-*-*-*-*-*-*")) )
 #endif // wxUSE_REGEX/!wxUSE_REGEX