diff options
author | Daniel Naber <naber@danielnaber.de> | 2012-05-09 20:39:40 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2012-05-09 20:42:04 +0200 |
commit | 1616759f49b2c2065a6404d16bee31dab9afa7f0 (patch) | |
tree | 60d536617c2298b55b158e49843fdd958ec1da66 /sw | |
parent | df45d9d1c037b27291c2173c4d0bfa6e3a42a73f (diff) |
fdo#49605: SwEditShell: fix handling of overlapping grammar errors
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/edit/edlingu.cxx | 2 |
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; |