summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2011-06-22 20:29:46 +0200
committerNoel Power <noel.power@novell.com>2011-06-23 14:29:14 +0100
commitbdbd2f7c727d909550839d3d88cc2ca7e089d151 (patch)
tree241cfdc2181783e421714bf87e8ae85aab908d8c
parent556838a24b2ac018d1ffb24e46b1b8de731dc903 (diff)
fix for fdo#38204: formulas with range names were not imported correctly
Signed-off-by: Noel Power <noel.power@novell.com>
-rw-r--r--sc/source/filter/excel/xiname.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/filter/excel/xiname.cxx b/sc/source/filter/excel/xiname.cxx
index 90be4dc02..8a80f5217 100644
--- a/sc/source/filter/excel/xiname.cxx
+++ b/sc/source/filter/excel/xiname.cxx
@@ -271,7 +271,7 @@ const XclImpName* XclImpNameManager::FindName( const String& rXclName, SCTAB nSc
const XclImpName* XclImpNameManager::GetName( sal_uInt16 nXclNameIdx ) const
{
DBG_ASSERT( nXclNameIdx > 0, "XclImpNameManager::GetName - index must be >0" );
- return ( nXclNameIdx >= maNameList.size() ) ? NULL : &(maNameList.at( nXclNameIdx - 1 ));
+ return ( nXclNameIdx > maNameList.size() ) ? NULL : &(maNameList.at( nXclNameIdx - 1 ));
}
// ============================================================================