[Libreoffice-commits] .: Branch 'libreoffice-3-5' - sc/source
Petr Mladek
pmladek at kemper.freedesktop.org
Tue Mar 20 03:09:52 PDT 2012
sc/source/core/data/documen5.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit f24545a72cf43d0852c4f8edae0b3a9919120cdd
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date: Mon Mar 19 20:59:01 2012 +0100
check for negative sheet number here too, fdo#47503
Signed-off-by: Petr Mladek <pmladek at suse.cz>
diff --git a/sc/source/core/data/documen5.cxx b/sc/source/core/data/documen5.cxx
index f19a067..7b83b53 100644
--- a/sc/source/core/data/documen5.cxx
+++ b/sc/source/core/data/documen5.cxx
@@ -636,7 +636,7 @@ void ScDocument::SetChartRangeList( const rtl::OUString& rChartName,
bool ScDocument::HasData( SCCOL nCol, SCROW nRow, SCTAB nTab )
{
- if (nTab < static_cast<SCTAB>(maTabs.size()) && maTabs[nTab])
+ if ( VALIDTAB(nTab) && nTab < static_cast<SCTAB>(maTabs.size()) && maTabs[nTab])
return maTabs[nTab]->HasData( nCol, nRow );
else
return false;
More information about the Libreoffice-commits
mailing list