diff options
author | Noel Power <noel.power@novell.com> | 2012-01-26 16:29:07 +0000 |
---|---|---|
committer | Noel Power <noel.power@novell.com> | 2012-02-03 12:43:43 +0000 |
commit | 50be8ec9ed680c9b5b419d549e981c7a335b0257 (patch) | |
tree | 9e0b76757c47ec386084c02b74a5f20aac1c8fc7 /oox | |
parent | 16af091a3339f6d00fe273f9dc5f155126e58881 (diff) |
fix corrupted numbers in pivottable using group field as data field fdo#45276
Diffstat (limited to 'oox')
-rw-r--r-- | oox/source/xls/pivottablebuffer.cxx | 7 |
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 ); |