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

Markus Mohrhard markus.mohrhard at collabora.co.uk
Sun Feb 22 18:09:58 PST 2015


 sc/source/filter/oox/excelfilter.cxx |   24 ++++++++++++------------
 1 file changed, 12 insertions(+), 12 deletions(-)

New commits:
commit a2fa9e2468aa5c4fd4b610c5d0ebc8959e87a072
Author: Markus Mohrhard <markus.mohrhard at collabora.co.uk>
Date:   Mon Feb 23 02:19:32 2015 +0100

    import the document properties before the document
    
    That allows us to potentially change the import depending on the
    producer of the document.
    
    This becomes necessary to handle MSO 2007 chart drawingml streams
    correctly.
    
    Change-Id: I9be8b019fae69cd206203591982a89648965692f

diff --git a/sc/source/filter/oox/excelfilter.cxx b/sc/source/filter/oox/excelfilter.cxx
index 06ab0db..35199e4 100644
--- a/sc/source/filter/oox/excelfilter.cxx
+++ b/sc/source/filter/oox/excelfilter.cxx
@@ -102,24 +102,24 @@ bool ExcelFilter::importDocument()
 
     try
     {
+        try
+        {
+            importDocumentProperties();
+        }
+        catch( const Exception& e )
+        {
+            SAL_WARN("sc", "exception when importing document properties " << e.Message);
+        }
+        catch( ... )
+        {
+            SAL_WARN("sc", "exception when importing document properties");
+        }
         /*  Construct the WorkbookGlobals object referred to by every instance of
             the class WorkbookHelper, and execute the import filter by constructing
             an instance of WorkbookFragment and loading the file. */
         WorkbookGlobalsRef xBookGlob(WorkbookHelper::constructGlobals(*this));
         if (xBookGlob.get() && importFragment(new WorkbookFragment(*xBookGlob, aWorkbookPath)))
         {
-            try
-            {
-                importDocumentProperties();
-            }
-            catch( const Exception& e )
-            {
-                SAL_WARN("sc", "exception when importing document properties " << e.Message);
-            }
-            catch( ... )
-            {
-                SAL_WARN("sc", "exception when importing document properties");
-            }
             return true;
         }
     }


More information about the Libreoffice-commits mailing list