[Libreoffice-commits] core.git: lingucomponent/source

Caolán McNamara caolanm at redhat.com
Mon Mar 19 20:19:58 UTC 2018


 lingucomponent/source/hyphenator/hyphen/hyphenimp.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit d2dc813469960cfef48b187cc5f9883478e41f14
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Mon Mar 19 14:08:48 2018 +0000

    coverity#1430057 silence Argument cannot be negative
    
    Change-Id: I58bf1a204393ea95c85f51cf9ef3387db1565a4e
    Reviewed-on: https://gerrit.libreoffice.org/51558
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/lingucomponent/source/hyphenator/hyphen/hyphenimp.cxx b/lingucomponent/source/hyphenator/hyphen/hyphenimp.cxx
index 8f9480e3ff0f..ba9523bc78f8 100644
--- a/lingucomponent/source/hyphenator/hyphen/hyphenimp.cxx
+++ b/lingucomponent/source/hyphenator/hyphen/hyphenimp.cxx
@@ -284,7 +284,7 @@ Reference< XHyphenatedWord > SAL_CALL Hyphenator::hyphenate( const OUString& aWo
     }
 
     // if we have a hyphenation dictionary matching this locale
-    if (k != -1)
+    if (k >= 0)
     {
         int nHyphenationPos = -1;
         int nHyphenationPosAlt = -1;


More information about the Libreoffice-commits mailing list