fix corrupted numbers in pivottable using group field as data field fdo#45276
This commit is contained in:
parent
16af091a33
commit
50be8ec9ed
1 changed files with 7 additions and 0 deletions
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue