From bdbd2f7c727d909550839d3d88cc2ca7e089d151 Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Wed, 22 Jun 2011 20:29:46 +0200 Subject: fix for fdo#38204: formulas with range names were not imported correctly Signed-off-by: Noel Power --- sc/source/filter/excel/xiname.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 )); } // ============================================================================ -- cgit v1.2.3