diff --git a/sw/source/core/edit/edlingu.cxx b/sw/source/core/edit/edlingu.cxx index 34fc195..53d9e3d 100644 --- a/sw/source/core/edit/edlingu.cxx +++ b/sw/source/core/edit/edlingu.cxx @@ -1162,7 +1162,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 < rError.nErrorStart + rError.nErrorLength) + rErrorPosInText + nLen <= rError.nErrorStart + rError.nErrorLength) { rSuggestions = rError.aSuggestions; rErrorIndexInResult = i;