[gnumeric] ODF import: fix axis label rotation
- From: Andreas J. Guelzow <guelzow src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] ODF import: fix axis label rotation
- Date: Wed, 15 Sep 2010 21:18:41 +0000 (UTC)
commit face79ac25638396bd76227a777ed32e9cd923c1
Author: Andreas J Guelzow <aguelzow pyrshep ca>
Date: Wed Sep 15 15:17:14 2010 -0600
ODF import: fix axis label rotation
2010-09-15 Andreas J. Guelzow <aguelzow pyrshep ca>
* openoffice-read.c (oo_chart_axis): apply style info to gostyle
plugins/openoffice/ChangeLog | 4 ++++
plugins/openoffice/openoffice-read.c | 11 +++++++++--
2 files changed, 13 insertions(+), 2 deletions(-)
---
diff --git a/plugins/openoffice/ChangeLog b/plugins/openoffice/ChangeLog
index 01efe08..76c31d3 100644
--- a/plugins/openoffice/ChangeLog
+++ b/plugins/openoffice/ChangeLog
@@ -1,3 +1,7 @@
+2010-09-15 Andreas J. Guelzow <aguelzow pyrshep ca>
+
+ * openoffice-read.c (oo_chart_axis): apply style info to gostyle
+
2010-09-15 Morten Welinder <terra gnome org>
* openoffice-read.c (od_draw_control_start): Fix UMR.
diff --git a/plugins/openoffice/openoffice-read.c b/plugins/openoffice/openoffice-read.c
index a88a0cb..63f0f9f 100644
--- a/plugins/openoffice/openoffice-read.c
+++ b/plugins/openoffice/openoffice-read.c
@@ -5239,8 +5239,15 @@ oo_chart_axis (GsfXMLIn *xin, xmlChar const **attrs)
if (NULL != style_name &&
NULL != (style = g_hash_table_lookup (state->chart.graph_styles, style_name))) {
- if (NULL != state->chart.axis)
- oo_prop_list_apply_to_axis (style->axis_props, G_OBJECT (state->chart.axis));
+ if (NULL != state->chart.axis) {
+ GOStyle *gostyle;
+ g_object_get (G_OBJECT (state->chart.axis), "style", &gostyle, NULL);
+
+ oo_prop_list_apply_to_axis (style->axis_props,
+ G_OBJECT (state->chart.axis));
+ odf_apply_style_props (xin, style->style_props, gostyle);
+ g_object_unref (gostyle);
+ }
if (NULL != state->chart.plot && (state->ver == OOO_VER_1))
oo_prop_list_apply (style->plot_props, G_OBJECT (state->chart.plot));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]