[Libreoffice-commits] .: Branch 'libreoffice-3-4-0' - sc/source
Kohei Yoshida
kohei at kemper.freedesktop.org
Fri May 20 09:50:33 PDT 2011
sc/source/ui/unoobj/fmtuno.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 18c542fd7c0feec8f2ff1d4757dcf9bde4eaf3c8
Author: Rafael Dominguez <venccsralph at gmail.com>
Date: Tue May 17 23:17:10 2011 -0430
Fix index out of bounds in ScTableConditionalFormat.
Signed-off-by: Kohei Yoshida <kyoshida at novell.com>
Signed-off-by: Michael Meeks <michael.meeks at novell.com>
Signed-off-by: Petr Mladek <pmladek at suse.cz>
diff --git a/sc/source/ui/unoobj/fmtuno.cxx b/sc/source/ui/unoobj/fmtuno.cxx
index e88369e..5c37c53 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(
More information about the Libreoffice-commits
mailing list