[Libreoffice-commits] core.git: sc/source

Tamás Zolnai tamas.zolnai at collabora.com
Mon Jan 9 12:48:02 UTC 2017


 sc/source/core/data/dpobject.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 9dd7999a480b2c9af652fbd0cd2d68df8d16e60d
Author: Tamás Zolnai <tamas.zolnai at collabora.com>
Date:   Mon Jan 9 13:47:21 2017 +0100

    Revert "PivotTable: Avoid adding useless 'Data' column field to table layout"
    
    This reverts commit ad86820a2bc99ede49875f8b03d6e64624e7b5f4.

diff --git a/sc/source/core/data/dpobject.cxx b/sc/source/core/data/dpobject.cxx
index e9b321b..ab220f1 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(


More information about the Libreoffice-commits mailing list