Kaydet (Commit) af56ed1c authored tarafından Markus Mohrhard's avatar Markus Mohrhard

fix condition

Change-Id: If8ad2361d6c0d838c39f8625f129fc326efd2cd4
üst e21e3b26
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment