[gnumeric] fix crash on ODF import
- From: Andreas J. Guelzow <guelzow src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] fix crash on ODF import
- Date: Thu, 2 Aug 2012 09:00:54 +0000 (UTC)
commit 9b50c8cded6fc25baab9d14cf740d2d6d01191ee
Author: Andreas J Guelzow <aguelzow pyrshep ca>
Date: Thu Aug 2 02:59:58 2012 -0600
fix crash on ODF import
2012-08-02 Andreas J. Guelzow <aguelzow pyrshep ca>
* openoffice-read.c (openoffice_file_open): initialize
default_style.graphics
plugins/openoffice/ChangeLog | 5 +++++
plugins/openoffice/openoffice-read.c | 1 +
2 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/plugins/openoffice/ChangeLog b/plugins/openoffice/ChangeLog
index 17f7433..4fbd761 100644
--- a/plugins/openoffice/ChangeLog
+++ b/plugins/openoffice/ChangeLog
@@ -1,5 +1,10 @@
2012-08-02 Andreas J. Guelzow <aguelzow pyrshep ca>
+ * openoffice-read.c (openoffice_file_open): initialize
+ default_style.graphics
+
+2012-08-02 Andreas J. Guelzow <aguelzow pyrshep ca>
+
* openoffice-read.c (_OOParseState): add field
(odf_apply_style_props): modify existing style for fill-color
and opacity
diff --git a/plugins/openoffice/openoffice-read.c b/plugins/openoffice/openoffice-read.c
index 971eac9..1626b3d 100644
--- a/plugins/openoffice/openoffice-read.c
+++ b/plugins/openoffice/openoffice-read.c
@@ -11355,6 +11355,7 @@ openoffice_file_open (G_GNUC_UNUSED GOFileOpener const *fo, GOIOContext *io_cont
state.default_style.cells = NULL;
state.default_style.rows = NULL;
state.default_style.columns = NULL;
+ state.default_style.graphics = NULL;
state.cur_style.type = OO_STYLE_UNKNOWN;
state.cur_style.requires_disposal = FALSE;
state.sheet_order = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]