diff options
author | Rafael Dominguez <venccsralph@gmail.com> | 2011-05-17 23:17:10 -0430 |
---|---|---|
committer | Kohei Yoshida <kyoshida@novell.com> | 2011-05-18 00:01:08 -0400 |
commit | d74b904a233a22c0ee81fd11f65d6d4b9319357a (patch) | |
tree | a47350df086df1fd46cb08eb2cf3d8d2444c7d37 /sc | |
parent | 7a249586c0fd056f7fc6919cdc3d1d51034f2425 (diff) |
Fix index out of bounds in ScTableConditionalFormat.
Signed-off-by: Kohei Yoshida <kyoshida@novell.com>
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 e88369ee7..5c37c539d 100644 --- a/sc/source/ui/unoobj/fmtuno.cxx +++ b/sc/source/ui/unoobj/fmtuno.cxx @@ -286,7 +286,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( |