fixed regex bug in ProcessFamiliesFromFontList
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11084 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -106,7 +106,7 @@ static bool ProcessFamiliesFromFontList(wxFontEnumerator *This,
|
|||||||
{
|
{
|
||||||
char *font = fonts[n];
|
char *font = fonts[n];
|
||||||
#if wxUSE_REGEX
|
#if wxUSE_REGEX
|
||||||
if ( re.Matches(font) )
|
if ( !re.Matches(font) )
|
||||||
#else // !wxUSE_REGEX
|
#else // !wxUSE_REGEX
|
||||||
if ( !wxString(font).Matches(wxT("-*-*-*-*-*-*-*-*-*-*-*-*-*-*")) )
|
if ( !wxString(font).Matches(wxT("-*-*-*-*-*-*-*-*-*-*-*-*-*-*")) )
|
||||||
#endif // wxUSE_REGEX/!wxUSE_REGEX
|
#endif // wxUSE_REGEX/!wxUSE_REGEX
|
||||||
|
Reference in New Issue
Block a user