Kaydet (Commit) 4a1295be authored tarafından Ariel Constenla-Haile's avatar Ariel Constenla-Haile

i119421 - Use the right comparison operator

üst e50d4638
......@@ -1181,7 +1181,7 @@ bool SwEditShell::GetGrammarCorrection(
// return suggestions for first error that includes the given error position
const linguistic2::SingleProofreadingError &rError = rResult.aErrors[i];
if( (rError.nErrorStart <= rErrorPosInText) &&
(rErrorPosInText + nLen < rError.nErrorStart + rError.nErrorLength))
(rErrorPosInText + nLen <= rError.nErrorStart + rError.nErrorLength))
{
rSuggestions = rError.aSuggestions;
rErrorIndexInResult = i;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment