[Libreoffice-commits] .: oox/source

Kohei Yoshida kohei at kemper.freedesktop.org
Wed Aug 31 19:24:27 PDT 2011


 oox/source/core/xmlfilterbase.cxx |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

New commits:
commit 6af23840bbf5be90b617f7e63deb074359e3e8a6
Author: Kohei Yoshida <kohei.yoshida at suse.com>
Date:   Wed Aug 31 22:17:29 2011 -0400

    fdo#40466: Make sure we have the same numbers of URI's and Id's.
    
    This caused an immediate crash when trying to import xlsx documents
    with charts on Windows.  No idea why this didn't crash on Linux,
    even valgrind's memcheck didn't pick it up.

diff --git a/oox/source/core/xmlfilterbase.cxx b/oox/source/core/xmlfilterbase.cxx
index 7d17921..732b677 100644
--- a/oox/source/core/xmlfilterbase.cxx
+++ b/oox/source/core/xmlfilterbase.cxx
@@ -146,7 +146,9 @@ namespace
                 "http://schemas.openxmlformats.org/spreadsheetml/2006/main",
                 "http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing",
                 "http://schemas.microsoft.com/office/excel/2006/main",
-                "http://schemas.openxmlformats.org/presentationml/2006/main"
+                "http://schemas.openxmlformats.org/presentationml/2006/main",
+                "http://schemas.openxmlformats.org/markup-compatibility/2006",
+                "http://schemas.openxmlformats.org/spreadsheetml/2006/main/v2"
             };
 
             static const sal_Int32 namespaceIds[] = {
@@ -168,7 +170,7 @@ namespace
                 NMSP_ax,
                 NMSP_xm,
                 NMSP_mce,
-                NMSP_mceTest,
+                NMSP_mceTest
             };
 
             Sequence< Pair< OUString, sal_Int32 > > aRet(STATIC_ARRAY_SIZE(namespaceIds));


More information about the Libreoffice-commits mailing list