summaryrefslogtreecommitdiff
path: root/oox/source/xls/pivottablebuffer.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'oox/source/xls/pivottablebuffer.cxx')
-rw-r--r--oox/source/xls/pivottablebuffer.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/oox/source/xls/pivottablebuffer.cxx b/oox/source/xls/pivottablebuffer.cxx
index 850dda8eb6bc..7e6d29801461 100644
--- a/oox/source/xls/pivottablebuffer.cxx
+++ b/oox/source/xls/pivottablebuffer.cxx
@@ -1420,8 +1420,15 @@ void PivotTable::finalizeImport()
// all data fields
for( DataFieldVector::iterator aIt = maDataFields.begin(), aEnd = maDataFields.end(); aIt != aEnd; ++aIt )
+ {
+ if( const PivotCacheField* pCacheField = getCacheField( aIt->mnField ) )
+ {
+ if ( pCacheField-> getGroupBaseField() != -1 )
+ aIt->mnField = pCacheField-> getGroupBaseField();
+ }
if( PivotTableField* pField = getTableField( aIt->mnField ) )
pField->convertDataField( *aIt );
+ }
// filters
maFilters.forEachMem( &PivotTableFilter::finalizeImport );