diff options
-rw-r--r-- | sc/source/ui/unoobj/fmtuno.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/unoobj/fmtuno.cxx b/sc/source/ui/unoobj/fmtuno.cxx index 1c61dbffd0ce..aa99980bf2e0 100644 --- a/sc/source/ui/unoobj/fmtuno.cxx +++ b/sc/source/ui/unoobj/fmtuno.cxx @@ -349,7 +349,7 @@ void SAL_CALL ScTableConditionalFormat::removeByIndex( sal_Int32 nIndex ) { SolarMutexGuard aGuard; - if (nIndex < static_cast<sal_Int32>(aEntries.size())) + if (nIndex < static_cast<sal_Int32>(aEntries.size()) && nIndex >= 0) { std::vector<ScTableConditionalEntry*>::iterator iter = aEntries.begin()+nIndex; |