[Libreoffice-commits] core.git: Branch 'libreoffice-4-4' - sc/source
Markus Mohrhard
markus.mohrhard at collabora.co.uk
Tue Mar 17 04:53:17 PDT 2015
sc/source/filter/oox/excelfilter.cxx | 24 ++++++++++++------------
1 file changed, 12 insertions(+), 12 deletions(-)
New commits:
commit 44fecfc2ee83927b847c0277239f5f1c9820c8b3
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
Reviewed-on: https://gerrit.libreoffice.org/14876
Tested-by: David Tardon <dtardon at redhat.com>
Reviewed-by: David Tardon <dtardon at redhat.com>
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