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

New commits:
commit d9890cc6b9bb5e94fe42ba0216dd5b7e92d11b13
Author:     Gökay Şatır <gokaysa...@collabora.com>
AuthorDate: Mon Sep 2 17:26:49 2024 +0300
Commit:     Mike Kaganski <mike.kagan...@collabora.com>
CommitDate: Tue Sep 3 15:26:23 2024 +0200

    tdf#160127: revert 7697ef9d8fbbed7afba10c00ff9f5362d0540cdd
    
    * https://gerrit.libreoffice.org/c/core/+/158832
    
    And the regression that reverted commit caused:
    * https://bugs.documentfoundation.org/show_bug.cgi?id=160127
    
    Signed-off-by: Gökay Şatır <gokaysa...@collabora.com>
    Change-Id: I5bf5414470dad735e5d973fa0d80f7e1c6a4c191
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172743
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>
    Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com>

diff --git a/sw/source/core/edit/edlingu.cxx b/sw/source/core/edit/edlingu.cxx
index 5731d2b2be49..e1f6d631139d 100644
--- a/sw/source/core/edit/edlingu.cxx
+++ b/sw/source/core/edit/edlingu.cxx
@@ -1031,8 +1031,7 @@ bool SwEditShell::GetGrammarCorrection(
                 auto pError = std::find_if(std::cbegin(rResult.aErrors), 
std::cend(rResult.aErrors),
                     [rErrorPosInText, nLen](const 
linguistic2::SingleProofreadingError &rError) {
                         return rError.nErrorStart <= rErrorPosInText
-                            && rErrorPosInText + nLen <= rError.nErrorStart + 
rError.nErrorLength
-                            && rError.aSuggestions.size() > 0; });
+                            && rErrorPosInText + nLen <= rError.nErrorStart + 
rError.nErrorLength; });
                 if (pError != std::cend(rResult.aErrors))
                 {
                     rSuggestions = pError->aSuggestions;

Reply via email to