From 32a2fbc8688b8357543456859d2a56766341795f Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 17 Jul 2001 18:14:04 +0000 Subject: [PATCH] fixed regex bug in ProcessFamiliesFromFontList git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11084 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/unix/fontenum.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/unix/fontenum.cpp b/src/unix/fontenum.cpp index d89102efb2..63bcf5c4fc 100644 --- a/src/unix/fontenum.cpp +++ b/src/unix/fontenum.cpp @@ -106,7 +106,7 @@ static bool ProcessFamiliesFromFontList(wxFontEnumerator *This, { 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 -- 2.45.2