summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Naber <naber@danielnaber.de>2012-05-09 18:39:40 (GMT)
committerMichael Stahl <mstahl@redhat.com>2012-05-09 18:42:04 (GMT)
commit1616759f49b2c2065a6404d16bee31dab9afa7f0 (patch)
tree60d536617c2298b55b158e49843fdd958ec1da66
parentdf45d9d1c037b27291c2173c4d0bfa6e3a42a73f (diff)
fdo#49605: SwEditShell: fix handling of overlapping grammar errors
-rw-r--r--sw/source/core/edit/edlingu.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/edit/edlingu.cxx b/sw/source/core/edit/edlingu.cxx
index 96ca627..e95f967 100644
--- a/sw/source/core/edit/edlingu.cxx
+++ b/sw/source/core/edit/edlingu.cxx
@@ -1160,7 +1160,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;