diff options
Diffstat (limited to 'linguistic/source/hyphdsp.cxx')
-rw-r--r-- | linguistic/source/hyphdsp.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linguistic/source/hyphdsp.cxx b/linguistic/source/hyphdsp.cxx index 6ede806a526e..4ce8d4aa099d 100644 --- a/linguistic/source/hyphdsp.cxx +++ b/linguistic/source/hyphdsp.cxx @@ -425,7 +425,7 @@ Reference< XHyphenatedWord > SAL_CALL LangSvcEntries_Hyph *pEntry = aIt != aSvcMap.end() ? aIt->second.get() : nullptr; bool bWordModified = false; - if (!pEntry || !(0 <= nIndex && nIndex <= nWordLen - 2)) + if (!pEntry || 0 > nIndex || nIndex > nWordLen - 2) { return nullptr; } |