[gnumeric] odf: tolerate missing styles.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] odf: tolerate missing styles.
- Date: Sun, 3 Mar 2019 21:23:05 +0000 (UTC)
commit a5fbf67b64fef83b0abf85780bf3a19dda27c55e
Author: Morten Welinder <terra gnome org>
Date: Sun Mar 3 16:22:31 2019 -0500
odf: tolerate missing styles.
NEWS | 1 +
plugins/openoffice/openoffice-read.c | 6 +-----
2 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/NEWS b/NEWS
index 250e1ad37..279913596 100644
--- a/NEWS
+++ b/NEWS
@@ -9,6 +9,7 @@ Morten:
Thomas Klausner:
* Fix compilation issue. [#378]
+ * Handle odf files with no styles whatsoever. [#389]
--------------------------------------------------------------------------
Gnumeric 1.12.44
diff --git a/plugins/openoffice/openoffice-read.c b/plugins/openoffice/openoffice-read.c
index 2b50c0035..6d72f3ad1 100644
--- a/plugins/openoffice/openoffice-read.c
+++ b/plugins/openoffice/openoffice-read.c
@@ -13737,11 +13737,7 @@ openoffice_file_open (G_GNUC_UNUSED GOFileOpener const *fo, GOIOContext *io_cont
styles = gsf_infile_child_by_name (zip, "styles.xml");
if (styles == NULL) {
- go_cmd_context_error_import (GO_CMD_CONTEXT (io_context),
- _("No stream named styles.xml found."));
- g_object_unref (contents);
- g_object_unref (zip);
- return;
+ /* uncommon but legal */
}
locale = gnm_push_C_locale ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]