diff options
author | Markus Mohrhard <markus.mohrhard@collabora.co.uk> | 2015-03-29 23:01:10 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@collabora.co.uk> | 2015-03-30 04:34:24 +0200 |
commit | af56ed1ca1e4d37bdef0875757bdee050c35cfef (patch) | |
tree | 3f437676f313d68078c8bfee9589d2d23eff2077 /sc | |
parent | e21e3b26646e9642d3e72269c44cbe3b781f9782 (diff) |
fix condition
Change-Id: If8ad2361d6c0d838c39f8625f129fc326efd2cd4
Diffstat (limited to 'sc')
-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); |