diff options
author | Markus Mohrhard <markus.mohrhard@collabora.co.uk> | 2015-03-29 23:01:10 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2015-04-09 11:39:29 +0200 |
commit | 053d0228bc3a44c247ca66ef1518f8e190d1d098 (patch) | |
tree | e95aecce29fd23985c1802a5748386fb42bcf8c3 | |
parent | correct lifecycle handling for more objects (diff) | |
download | core-053d0228bc3a44c247ca66ef1518f8e190d1d098.tar.gz core-053d0228bc3a44c247ca66ef1518f8e190d1d098.zip |
fix condition
Change-Id: If8ad2361d6c0d838c39f8625f129fc326efd2cd4
-rw-r--r-- | sc/source/ui/unoobj/condformatuno.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/unoobj/condformatuno.cxx b/sc/source/ui/unoobj/condformatuno.cxx index 1a5af16d68a7..88fd41a220f9 100644 --- a/sc/source/ui/unoobj/condformatuno.cxx +++ b/sc/source/ui/unoobj/condformatuno.cxx @@ -398,7 +398,7 @@ uno::Any ScCondFormatObj::getByIndex(sal_Int32 nIndex) throw(uno::RuntimeException, std::exception) { SolarMutexGuard aGuard; - if (getCoreObject()->size() >= size_t(nIndex)) + if (getCoreObject()->size() <= size_t(nIndex)) throw lang::IllegalArgumentException(); const ScFormatEntry* pEntry = getCoreObject()->GetEntry(nIndex); |