summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@suse.com>2012-02-27 22:49:49 -0500
committerKohei Yoshida <kohei.yoshida@suse.com>2012-02-27 23:47:00 -0500
commit5c699635cecc9877632de5f3dc07d1942c5b6416 (patch)
tree2133b8ea504f27ee055b23990b51a201ea14ad20 /sc
parentdf0aab7f66ba227eda91a8a3568665036556bac0 (diff)
Import field as hidden field only when the axes type is 0.
The old code would import data axis as hidden field too which makes no sense & generates unnecessary duplicate field for legitimate data field.
Diffstat (limited to 'sc')
-rw-r--r--sc/source/filter/excel/xipivot.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/filter/excel/xipivot.cxx b/sc/source/filter/excel/xipivot.cxx
index 4b517705ff95..7284ba14edd0 100644
--- a/sc/source/filter/excel/xipivot.cxx
+++ b/sc/source/filter/excel/xipivot.cxx
@@ -1403,7 +1403,7 @@ void XclImpPivotTable::Convert()
// hidden fields
for( sal_uInt16 nField = 0, nCount = GetFieldCount(); nField < nCount; ++nField )
if( const XclImpPTField* pField = GetField( nField ) )
- if( (pField->GetAxes() & EXC_SXVD_AXIS_ROWCOLPAGE) == 0 )
+ if (!pField->GetAxes())
pField->ConvertHiddenField( aSaveData );
// data fields