summaryrefslogtreecommitdiffstats
path: root/lingucomponent
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-03-19 14:08:48 +0000
committerCaolán McNamara <caolanm@redhat.com>2018-03-19 21:19:36 +0100
commitd2dc813469960cfef48b187cc5f9883478e41f14 (patch)
treef6f527e681874b3cc86f5e805f140846976e7dde /lingucomponent
parentcoverity#1430077 add assert for 'Division or modulo by zero' (diff)
downloadcore-d2dc813469960cfef48b187cc5f9883478e41f14.tar.gz
core-d2dc813469960cfef48b187cc5f9883478e41f14.zip
coverity#1430057 silence Argument cannot be negative
Change-Id: I58bf1a204393ea95c85f51cf9ef3387db1565a4e Reviewed-on: https://gerrit.libreoffice.org/51558 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'lingucomponent')
-rw-r--r--lingucomponent/source/hyphenator/hyphen/hyphenimp.cxx2
1 files changed, 1 insertions, 1 deletions
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;