Commit e33c6346 authored by Jody Goldberg's avatar Jody Goldberg Committed by Jody Goldberg

re-enable compression.

2001-10-29  Jody Goldberg <jgoldberg@home.com>

	* src/xml-io.c (gnumeric_xml_write_workbook) : re-enable compression.
parent f1ecb2b7
2001-10-29 Jody Goldberg <jgoldberg@home.com>
* src/xml-io.c (gnumeric_xml_write_workbook) : re-enable compression.
2001-10-29 Jody Goldberg <jgoldberg@home.com> 2001-10-29 Jody Goldberg <jgoldberg@home.com>
* Release 0.74 * Release 0.74
......
2001-10-29 Jody Goldberg <jgoldberg@home.com>
* src/xml-io.c (gnumeric_xml_write_workbook) : re-enable compression.
2001-10-29 Jody Goldberg <jgoldberg@home.com> 2001-10-29 Jody Goldberg <jgoldberg@home.com>
* Release 0.74 * Release 0.74
......
2001-10-29 Jody Goldberg <jgoldberg@home.com>
* src/xml-io.c (gnumeric_xml_write_workbook) : re-enable compression.
2001-10-29 Jody Goldberg <jgoldberg@home.com> 2001-10-29 Jody Goldberg <jgoldberg@home.com>
* Release 0.74 * Release 0.74
......
2001-10-29 Jody Goldberg <jgoldberg@home.com>
* src/xml-io.c (gnumeric_xml_write_workbook) : re-enable compression.
2001-10-29 Jody Goldberg <jgoldberg@home.com> 2001-10-29 Jody Goldberg <jgoldberg@home.com>
* Release 0.74 * Release 0.74
......
...@@ -3504,14 +3504,10 @@ gnumeric_xml_write_workbook (GnumFileSaver const *fs, ...@@ -3504,14 +3504,10 @@ gnumeric_xml_write_workbook (GnumFileSaver const *fs,
{ {
xmlDocPtr xml; xmlDocPtr xml;
XmlParseContext *ctxt; XmlParseContext *ctxt;
FILE *file;
g_return_if_fail (wb_view != NULL); g_return_if_fail (wb_view != NULL);
g_return_if_fail (filename != NULL); g_return_if_fail (filename != NULL);
/*
* Create the tree
*/
xml = xmlNewDoc ("1.0"); xml = xmlNewDoc ("1.0");
if (xml == NULL) { if (xml == NULL) {
gnumeric_io_error_save (context, ""); gnumeric_io_error_save (context, "");
...@@ -3522,11 +3518,8 @@ gnumeric_xml_write_workbook (GnumFileSaver const *fs, ...@@ -3522,11 +3518,8 @@ gnumeric_xml_write_workbook (GnumFileSaver const *fs,
xml_parse_ctx_destroy (ctxt); xml_parse_ctx_destroy (ctxt);
gnumeric_xml_set_compression (xml); gnumeric_xml_set_compression (xml);
file = gnumeric_fopen (context, filename, "w"); if (xmlSaveFile (filename, xml) < 0)
if (file != NULL) { gnumeric_io_error_save (context, g_strerror (errno));
xmlDocDump (file, xml);
fclose (file);
}
xmlFreeDoc (xml); xmlFreeDoc (xml);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment