Kaydet (Commit) 655583be authored tarafından Rafael Dominguez's avatar Rafael Dominguez Kaydeden (comit) Kohei Yoshida

Fix index out of bounds in ScTableConditionalFormat.

Signed-off-by: 's avatarKohei Yoshida <kyoshida@novell.com>
üst 80dd2af0
......@@ -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(
......
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