[gnumeric] xlsx: fix import positioning problem.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] xlsx: fix import positioning problem.
- Date: Thu, 22 Jan 2015 14:52:45 +0000 (UTC)
commit b9e17df3b1757b7042ecd4d20c27e6527b38eb93
Author: Morten Welinder <terra gnome org>
Date: Thu Jan 22 09:52:22 2015 -0500
xlsx: fix import positioning problem.
plugins/excel/ChangeLog | 5 +++++
plugins/excel/xlsx-read-drawing.c | 2 ++
2 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/plugins/excel/ChangeLog b/plugins/excel/ChangeLog
index 228fc80..4b8cb1e 100644
--- a/plugins/excel/ChangeLog
+++ b/plugins/excel/ChangeLog
@@ -1,5 +1,10 @@
2015-01-21 Morten Welinder <terra gnome org>
+ * xlsx-read-drawing.c (xlsx_read_chart): Reset chart position here
+ so we don't accidentally give the first object a (0,0) position.
+
+2015-01-21 Morten Welinder <terra gnome org>
+
* xlsx-write-drawing.c (xlsx_write_one_plot): varyColor defaults
to TRUE, so be sure to output it for line plots etc.
(xlsx_write_one_plot): Set smooth for anything but linear
diff --git a/plugins/excel/xlsx-read-drawing.c b/plugins/excel/xlsx-read-drawing.c
index 1c378c8..5fa8080 100644
--- a/plugins/excel/xlsx-read-drawing.c
+++ b/plugins/excel/xlsx-read-drawing.c
@@ -2280,6 +2280,8 @@ xlsx_read_chart (GsfXMLIn *xin, xmlChar const **attrs)
state->axis.by_id = g_hash_table_new_full (g_str_hash, g_str_equal,
NULL, (GDestroyNotify) xlsx_axis_info_free);
state->axis.by_obj = g_hash_table_new (g_direct_hash, g_direct_equal);
+ xlsx_reset_chart_pos (state);
+
xlsx_parse_rel_by_id (xin, part_id, xlsx_chart_dtd, xlsx_ns);
if (NULL != state->obj_stack) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]