diff options
author | Tamás Zolnai <tamas.zolnai@collabora.com> | 2017-01-08 05:04:19 +0100 |
---|---|---|
committer | Tamás Zolnai <tamas.zolnai@collabora.com> | 2017-01-08 07:10:48 +0100 |
commit | ad86820a2bc99ede49875f8b03d6e64624e7b5f4 (patch) | |
tree | 320fb2dbe7864815eb606e902cf849fde94e42c4 | |
parent | 26a5f7d7c2c3fe4a3f3b00b17e0b5a0e4a0880a5 (diff) |
PivotTable: Avoid adding useless 'Data' column field to table layout
Layout dialog adds this column field by default, but it has
no actual meaning or functionality. It must be added because
of this broken logic here (adding a field only when its hidden?).
This 'Data' field must be related to OOXML format see
OOX_PT_DATALAYOUTFIELD, but might be deprecated actually.
Change-Id: I90f00ef6290b343f84e40e5c94fd0e29a328329b
-rw-r--r-- | sc/source/core/data/dpobject.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/data/dpobject.cxx b/sc/source/core/data/dpobject.cxx index ab220f18651d..e9b321b4debf 100644 --- a/sc/source/core/data/dpobject.cxx +++ b/sc/source/core/data/dpobject.cxx @@ -2308,7 +2308,7 @@ void ScDPObject::FillOldParam(ScPivotParam& rParam) const rParam.nTab = aOutRange.aStart.Tab(); // ppLabelArr / nLabels is not changed - bool bAddData = ( lcl_GetDataGetOrientation( xSource ) == sheet::DataPilotFieldOrientation_HIDDEN ); + bool bAddData = ( lcl_GetDataGetOrientation( xSource ) != sheet::DataPilotFieldOrientation_HIDDEN ); lcl_FillOldFields( rParam.maPageFields, xSource, sheet::DataPilotFieldOrientation_PAGE, false); lcl_FillOldFields( |