diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-03-19 14:08:48 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-03-19 21:19:36 +0100 |
commit | d2dc813469960cfef48b187cc5f9883478e41f14 (patch) | |
tree | f6f527e681874b3cc86f5e805f140846976e7dde /lingucomponent | |
parent | cce17de6e7736341056604fc391c78295b097a7d (diff) |
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.cxx | 2 |
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; |