summaryrefslogtreecommitdiff
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
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 96ca62708dc4..e95f9676c701 100644
--- a/sw/source/core/edit/edlingu.cxx
+++ b/sw/source/core/edit/edlingu.cxx
@@ -1160,7 +1160,7 @@ bool SwEditShell::GetGrammarCorrection(
1160 // return suggestions for first error that includes the given error position 1160 // return suggestions for first error that includes the given error position
1161 const linguistic2::SingleProofreadingError &rError = rResult.aErrors[i]; 1161 const linguistic2::SingleProofreadingError &rError = rResult.aErrors[i];
1162 if (rError.nErrorStart <= rErrorPosInText && 1162 if (rError.nErrorStart <= rErrorPosInText &&
1163 rErrorPosInText < rError.nErrorStart + rError.nErrorLength) 1163 rErrorPosInText + nLen <= rError.nErrorStart + rError.nErrorLength)
1164 { 1164 {
1165 rSuggestions = rError.aSuggestions; 1165 rSuggestions = rError.aSuggestions;
1166 rErrorIndexInResult = i; 1166 rErrorIndexInResult = i;