Fix case-insensitive regular expressions in the Select Lines dialog

Originally committed to SVN as r6560.
This commit is contained in:
Thomas Goyne 2012-03-10 02:16:28 +00:00
parent 12511901a9
commit 29662749db

View file

@ -105,7 +105,7 @@ static std::set<AssDialogue*> process(wxString match_text, bool match_case, int
int flags = wxRE_ADVANCED;
if (!match_case)
flags |= wxRE_ICASE;
if (!re.Compile(match_text))
if (!re.Compile(match_text, flags))
throw BadRegex("Syntax error in regular expression", 0);
match_case = false;
}