mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
FindAdv: Amend 4125f6a9
Variables regexError and regexError only defined when searching via QT-version >= 5
This commit is contained in:
parent
4125f6a9d3
commit
c559b69fe1
@ -3436,12 +3436,12 @@ static bool previous_single_replace = true;
|
||||
|
||||
void MatchStringAdv::CreateRegexp(FindAndReplaceOptions const & opt, string regexp_str, string regexp2_str, string par_as_string)
|
||||
{
|
||||
#if QTSEARCH
|
||||
if (regexp_str.empty() || regexp2_str.empty()) {
|
||||
regexIsValid = false;
|
||||
regexError = "Invalid empty regex";
|
||||
return;
|
||||
}
|
||||
#if QTSEARCH
|
||||
// Handle \w properly
|
||||
QRegularExpression::PatternOptions popts = QRegularExpression::UseUnicodePropertiesOption | QRegularExpression::MultilineOption;
|
||||
if (! opt.casesensitive) {
|
||||
|
Loading…
Reference in New Issue
Block a user