summaryrefslogtreecommitdiff
path: root/sw/source/core/edit/edlingu.cxx
diff options
context:
space:
mode:
authorDaniel Naber <naber@danielnaber.de>2012-05-09 20:39:40 +0200
committerMichael Stahl <mstahl@redhat.com>2012-05-09 20:42:04 +0200
commit1616759f49b2c2065a6404d16bee31dab9afa7f0 (patch)
tree60d536617c2298b55b158e49843fdd958ec1da66 /sw/source/core/edit/edlingu.cxx
parentdf45d9d1c037b27291c2173c4d0bfa6e3a42a73f (diff)
fdo#49605: SwEditShell: fix handling of overlapping grammar errors
Diffstat (limited to 'sw/source/core/edit/edlingu.cxx')
-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 96ca62708dc4..e95f9676c701 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;