sc/source/filter/oox/pivottablebuffer.cxx |   16 +++++++---------
 1 file changed, 7 insertions(+), 9 deletions(-)

New commits:
commit 8994f2a43c2c5930c5fb0bfb7270d28fec9ef140
Author:     Devashish Gupta <[email protected]>
AuthorDate: Tue Mar 25 00:22:43 2025 +0530
Commit:     Ilmari Lauhakangas <[email protected]>
CommitDate: Wed Mar 26 11:34:09 2025 +0100

    tdf#48140: Replace PropertySet with ScDPSaveData in finalizeImport
    
    Change-Id: If8286bba7170d00dccec23e38fd3a80d348e2c8a
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/183277
    Reviewed-by: Mike Kaganski <[email protected]>
    Tested-by: Jenkins

diff --git a/sc/source/filter/oox/pivottablebuffer.cxx 
b/sc/source/filter/oox/pivottablebuffer.cxx
index 04ace38fa876..995cca5d57eb 100644
--- a/sc/source/filter/oox/pivottablebuffer.cxx
+++ b/sc/source/filter/oox/pivottablebuffer.cxx
@@ -1286,17 +1286,15 @@ void PivotTable::finalizeImport()
             return;
 
         // global data pilot properties
-        PropertySet aDescProp(( css::uno::Reference< css::beans::XPropertySet 
>(mxDPDescriptor) ));
-        aDescProp.setProperty( PROP_ColumnGrand, maDefModel.mbColGrandTotals );
-        aDescProp.setProperty( PROP_RowGrand, maDefModel.mbRowGrandTotals );
-        aDescProp.setProperty( PROP_ShowFilterButton, false );
-        aDescProp.setProperty( PROP_DrillDownOnDoubleClick, 
maDefModel.mbEnableDrill );
-
-        mpDPObject->SetHideHeader(maLocationModel.mnFirstHeaderRow == 0);
-
         if (auto* pSaveData = mpDPObject->GetSaveData())
+        {
+            pSaveData->SetColumnGrand(maDefModel.mbColGrandTotals);
+            pSaveData->SetRowGrand(maDefModel.mbRowGrandTotals);
+            pSaveData->SetDrillDown(maDefModel.mbEnableDrill);
+            pSaveData->SetFilterButton(false);
             pSaveData->SetExpandCollapse(maDefModel.mbShowDrill);
-
+        }
+        mpDPObject->SetHideHeader(maLocationModel.mnFirstHeaderRow == 0);
         // finalize all fields, this finds field names and creates grouping 
fields
         finalizeFieldsImport();
 

Reply via email to