diff options
Diffstat (limited to 'sw/source/core/unocore/unocoll.cxx')
-rw-r--r-- | sw/source/core/unocore/unocoll.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/unocore/unocoll.cxx b/sw/source/core/unocore/unocoll.cxx index 9965a5b9ca8e..c9a2cdc0dff4 100644 --- a/sw/source/core/unocore/unocoll.cxx +++ b/sw/source/core/unocore/unocoll.cxx @@ -1412,7 +1412,7 @@ uno::Any SwXTextSections::getByIndex(sal_Int32 nIndex) if(static_cast<size_t>(nIndex) == i) break; } - if(!(nIndex >= 0 && o3tl::make_unsigned(nIndex) < rFormats.size())) + if(nIndex < 0 || o3tl::make_unsigned(nIndex) >= rFormats.size()) throw IndexOutOfBoundsException(); SwSectionFormat* pFormat = rFormats[nIndex]; |