summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2014-03-09 19:11:40 -0400
committerKohei Yoshida <kohei.yoshida@collabora.com>2014-03-09 19:12:30 -0400
commit98bd1911420f46380aa5373a92de6a748ced080d (patch)
treea24ee3629e44231aaefa53c5796743fbbbf2e4f5 /sc
parent057d269c5d1faf45c4c935b2f8120c45e646de65 (diff)
fdo#75960: No point instantiating the struct when there are no pivot tables.
Just a tiny micro-optimization. Change-Id: I850bebc63a3f51456326b09ce72442845ea04478
Diffstat (limited to 'sc')
-rw-r--r--sc/source/filter/xml/xmlimprt.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/sc/source/filter/xml/xmlimprt.cxx b/sc/source/filter/xml/xmlimprt.cxx
index b6cd7101111a..64cfe3db1690 100644
--- a/sc/source/filter/xml/xmlimprt.cxx
+++ b/sc/source/filter/xml/xmlimprt.cxx
@@ -3232,7 +3232,9 @@ void SAL_CALL ScXMLImport::endDocument()
SetLabelRanges();
SetNamedRanges();
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
if (pDoc)