diff options
author | Rafael Dominguez <venccsralph@gmail.com> | 2011-05-17 23:17:10 -0430 |
---|---|---|
committer | Kohei Yoshida <kyoshida@novell.com> | 2011-05-17 23:59:11 -0400 |
commit | 278ac6c87d2bed5956a138eeb70431e8988eed99 (patch) | |
tree | e1bdb0b920a4073f45bdeaf21fe1fc5f28d4eaf7 /sc | |
parent | dca0391318ca9a88ef89ce89da7588732a47f43b (diff) |
Fix index out of bounds in ScTableConditionalFormat.
Diffstat (limited to 'sc')
-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 ca7ae10a715e..1e9e52ad5660 100644 --- a/sc/source/ui/unoobj/fmtuno.cxx +++ b/sc/source/ui/unoobj/fmtuno.cxx @@ -287,7 +287,7 @@ void ScTableConditionalFormat::AddEntry_Impl(const ScCondFormatEntryItem& aEntry ScTableConditionalEntry* ScTableConditionalFormat::GetObjectByIndex_Impl(sal_uInt16 nIndex) const { - return aEntries[nIndex]; + return nIndex < aEntries.size() ? aEntries[nIndex] : NULL; } void SAL_CALL ScTableConditionalFormat::addNew( |