[gnumeric] Gnumeric uses a default axis crossing position of 0 if pos-str==cross



commit 8aaea8566dedc187e1d9e90687896b86de43beb8
Author: Andreas J. Guelzow <aguelzow pyrshep ca>
Date:   Sat Feb 7 16:50:47 2015 -0700

    Gnumeric uses a default axis crossing position of 0 if pos-str==cross
    
    2015-02-07  Andreas J. Guelzow <aguelzow pyrshep ca>
    
        * openoffice-write.c (odf_write_axis_position): Gnumeric uses a default crossing
        position of 0 if pos-str==cross

 plugins/openoffice/ChangeLog          |    5 +++++
 plugins/openoffice/openoffice-write.c |    2 ++
 2 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/plugins/openoffice/ChangeLog b/plugins/openoffice/ChangeLog
index 8b7c54e..c2eb4d5 100644
--- a/plugins/openoffice/ChangeLog
+++ b/plugins/openoffice/ChangeLog
@@ -1,5 +1,10 @@
 2015-02-07  Andreas J. Guelzow <aguelzow pyrshep ca>
 
+       * openoffice-write.c (odf_write_axis_position): Gnumeric uses a default crossing
+       position of 0 if pos-str==cross
+
+2015-02-07  Andreas J. Guelzow <aguelzow pyrshep ca>
+
        * openoffice-read.c (odf_apply_style_props): apply gnm-auto-type
        (od_style_prop_chart): use a name indicative of it being an extension
 
diff --git a/plugins/openoffice/openoffice-write.c b/plugins/openoffice/openoffice-write.c
index b59c259..5ead120 100644
--- a/plugins/openoffice/openoffice-write.c
+++ b/plugins/openoffice/openoffice-write.c
@@ -6983,6 +6983,8 @@ odf_write_axis_position (GnmOOExport *state, G_GNUC_UNUSED GOStyle const *style,
                                odf_write_data_attribute (state, bd, &pp,
                                                          GNMSTYLE "axis-position-expression",
                                                          CHART "axis-position");
+                       else
+                               gsf_xml_out_add_cstr (state->xml, CHART "axis-position", "0");  
                }
        }
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]