diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2011-06-22 20:29:46 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2011-06-23 14:38:55 +0200 |
commit | 4068aa5fac1c3e6f4baac44b7ed5e3793a6b8fd1 (patch) | |
tree | 0d65849b78794089ac23ebd15191b42d8d0dad87 | |
parent | dee48e6ee04164ce29da292719033ec65eb58f47 (diff) |
fix for fdo#38204: formulas with range names were not imported correctly
-rw-r--r-- | sc/source/filter/excel/xiname.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/filter/excel/xiname.cxx b/sc/source/filter/excel/xiname.cxx index 261d61f9f..19e18d9f2 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 { OSL_ENSURE( 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 )); } // ============================================================================ |