summaryrefslogtreecommitdiff
path: root/sc/source/filter/oox/pivotcachebuffer.cxx
diff options
context:
space:
mode:
authorJochen Nitschke <j.nitschke+logerrit@ok.de>2016-12-30 15:14:18 +0100
committerJochen Nitschke <j.nitschke+logerrit@ok.de>2017-01-03 00:15:35 +0000
commit77dc03c29501234bb07170004a7b8204987bad0c (patch)
tree89ea0ab3d995782442da6be17645a6743eb63131 /sc/source/filter/oox/pivotcachebuffer.cxx
parent9efa11a1090ab088c64a26dacea5d6f40d7878e6 (diff)
tdf#48140 replace CellRangeAddress in xlsx import (2)
Change-Id: I91115c65671910e4208cb14ae3837ff2129af472 Reviewed-on: https://gerrit.libreoffice.org/32571 Tested-by: Jochen Nitschke <j.nitschke+logerrit@ok.de> Reviewed-by: Jochen Nitschke <j.nitschke+logerrit@ok.de>
Diffstat (limited to 'sc/source/filter/oox/pivotcachebuffer.cxx')
-rw-r--r--sc/source/filter/oox/pivotcachebuffer.cxx6
1 files changed, 1 insertions, 5 deletions
diff --git a/sc/source/filter/oox/pivotcachebuffer.cxx b/sc/source/filter/oox/pivotcachebuffer.cxx
index fbdcfdda11a0..685d163044e1 100644
--- a/sc/source/filter/oox/pivotcachebuffer.cxx
+++ b/sc/source/filter/oox/pivotcachebuffer.cxx
@@ -49,7 +49,6 @@ namespace xls {
using namespace ::com::sun::star::container;
using namespace ::com::sun::star::sheet;
-using namespace ::com::sun::star::table;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::util;
@@ -1075,10 +1074,7 @@ void PivotCache::finalizeInternalSheetSource()
// local or global defined name
if( const DefinedName* pDefName = getDefinedNames().getByModelName( maSheetSrcModel.maDefName, nSheet ).get() )
{
- CellRangeAddress aCellRange = CellRangeAddress( maSheetSrcModel.maRange.aStart.Tab(),
- maSheetSrcModel.maRange.aStart.Col(), maSheetSrcModel.maRange.aStart.Row(),
- maSheetSrcModel.maRange.aEnd.Col(), maSheetSrcModel.maRange.aEnd.Row() );
- mbValidSource = pDefName->getAbsoluteRange( aCellRange );
+ mbValidSource = pDefName->getAbsoluteRange( maSheetSrcModel.maRange );
}
// table
else if( const Table* pTable = getTables().getTable( maSheetSrcModel.maDefName ).get() )