[gnumeric] xlsx: fix [Content_Types].xml for legacy drawings.



commit 30d84e983257e6da7497ddbb4e8a6c70b6861ff8
Author: Morten Welinder <terra gnome org>
Date:   Sun Feb 22 13:48:46 2015 -0500

    xlsx: fix [Content_Types].xml for legacy drawings.
    
    Excel was unhappy.  Requires new libgsf.

 configure.ac                       |    2 +-
 plugins/excel/xlsx-write-drawing.c |    4 +++-
 2 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index c17f209..7001094 100644
--- a/configure.ac
+++ b/configure.ac
@@ -153,7 +153,7 @@ PKG_PROG_PKG_CONFIG(0.18)
 dnl *****************************
 libspreadsheet_reqs="
        libgoffice-${GOFFICE_API_VER}   >= 0.10.21
-       libgsf-1                >= 1.14.24
+       libgsf-1                >= 1.14.32
        libxml-2.0              >= 2.4.12
 "
 gnumeric_reqs="$libspreadsheet_reqs
diff --git a/plugins/excel/xlsx-write-drawing.c b/plugins/excel/xlsx-write-drawing.c
index c0194fd..4f25501 100644
--- a/plugins/excel/xlsx-write-drawing.c
+++ b/plugins/excel/xlsx-write-drawing.c
@@ -1375,7 +1375,9 @@ xlsx_write_legacy_drawing_objects (XLSXWriteState *state, GsfOutput *sheet_part,
        }
 
        name = g_strdup_printf ("vmlDrawing%u.vml", ++state->legacy_drawing.count);
-       drawing_part = gsf_outfile_new_child_full (state->drawing.dir, name, FALSE, NULL);
+       drawing_part = gsf_outfile_new_child_full (state->drawing.dir, name, FALSE,
+                                                  "content-type", NULL,
+                                                  NULL);
        g_free (name);
 
        rId = gsf_outfile_open_pkg_relate (GSF_OUTFILE_OPEN_PKG (drawing_part),


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]