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

Kohei Yoshida kohei.yoshida at collabora.com
Sun Mar 9 16:14:02 PDT 2014


 sc/source/filter/xml/xmlimprt.cxx |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 98bd1911420f46380aa5373a92de6a748ced080d
Author: Kohei Yoshida <kohei.yoshida at collabora.com>
Date:   Sun Mar 9 19:11:40 2014 -0400

    fdo#75960: No point instantiating the struct when there are no pivot tables.
    
    Just a tiny micro-optimization.
    
    Change-Id: I850bebc63a3f51456326b09ce72442845ea04478

diff --git a/sc/source/filter/xml/xmlimprt.cxx b/sc/source/filter/xml/xmlimprt.cxx
index b6cd710..64cfe3d 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)


More information about the Libreoffice-commits mailing list