[Libreoffice-commits] .: sw/source

Michael Stahl mst at kemper.freedesktop.org
Wed May 9 11:47:13 PDT 2012


 sw/source/core/edit/edlingu.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 1616759f49b2c2065a6404d16bee31dab9afa7f0
Author: Daniel Naber <naber at danielnaber.de>
Date:   Wed May 9 20:39:40 2012 +0200

    fdo#49605: SwEditShell: fix handling of overlapping grammar errors

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;


More information about the Libreoffice-commits mailing list