From d2dc813469960cfef48b187cc5f9883478e41f14 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 19 Mar 2018 14:08:48 +0000 Subject: coverity#1430057 silence Argument cannot be negative MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I58bf1a204393ea95c85f51cf9ef3387db1565a4e Reviewed-on: https://gerrit.libreoffice.org/51558 Tested-by: Jenkins Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- lingucomponent/source/hyphenator/hyphen/hyphenimp.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit