Kaydet (Commit) 98bd1911 authored tarafından Kohei Yoshida's avatar Kohei Yoshida

fdo#75960: No point instantiating the struct when there are no pivot tables.

Just a tiny micro-optimization.

Change-Id: I850bebc63a3f51456326b09ce72442845ea04478
üst 057d269c
...@@ -3232,7 +3232,9 @@ void SAL_CALL ScXMLImport::endDocument() ...@@ -3232,7 +3232,9 @@ void SAL_CALL ScXMLImport::endDocument()
SetLabelRanges(); SetLabelRanges();
SetNamedRanges(); SetNamedRanges();
SetSheetNamedRanges(); SetSheetNamedRanges();
GetPivotTableSources().process(); if (mpPivotSources)
// Process pivot table sources after the named ranges have been set.
mpPivotSources->process();
} }
GetProgressBarHelper()->End(); // make room for subsequent SfxProgressBars GetProgressBarHelper()->End(); // make room for subsequent SfxProgressBars
if (pDoc) if (pDoc)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment