+ fix: minor source of error

This commit is contained in:
Rainer Kottenhoff 2017-11-16 08:45:00 +01:00
parent fed6db003b
commit 0c35f9bb67

View File

@ -149,7 +149,7 @@ long DeelxRegexSearch::FindText(Document* doc,int minPos,int maxPos,const char *
compileFlags |= (!caseSensitive) ? deelx::IGNORECASE : deelx::NO_FLAG;
compileFlags |= (right2left) ? deelx::RIGHTTOLEFT : deelx::NO_FLAG;
std::string sRegExprStrg = translateRegExpr(std::string(pattern,*length),word,wordStart);
std::string sRegExprStrg = translateRegExpr(std::string(pattern),word,wordStart);
bool bReCompile = (m_CompileFlags != compileFlags) || (m_RegExprStrg.compare(sRegExprStrg) != 0);
if (bReCompile) {