[gnumeric] In ODF files, do not confuse MS Excel by writing categories for Bubble Plots



commit 496aafc5928d2e81d5d72f5bac40d5dc04d5f873
Author: Andreas J Guelzow <aguelzow pyrshep ca>
Date:   Thu Jul 14 20:08:08 2011 -0600

    In ODF files, do not confuse MS Excel by writing categories for Bubble Plots
    
    2011-07-14  Andreas J. Guelzow <aguelzow pyrshep ca>
    
    	* openoffice-write.c (odf_write_axis): do not confuse MS Excel by
    	writing categories for Bubble Plots

 plugins/openoffice/ChangeLog          |    5 +++++
 plugins/openoffice/openoffice-write.c |    3 ++-
 2 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/plugins/openoffice/ChangeLog b/plugins/openoffice/ChangeLog
index 8de23b7..108908a 100644
--- a/plugins/openoffice/ChangeLog
+++ b/plugins/openoffice/ChangeLog
@@ -1,3 +1,8 @@
+2011-07-14  Andreas J. Guelzow <aguelzow pyrshep ca>
+
+	* openoffice-write.c (odf_write_axis): do not confuse MS Excel by
+	writing categories for Bubble Plots
+
 2011-07-08  Andreas J. Guelzow <aguelzow pyrshep ca>
 
 	* openoffice-read.c (oo_style): don't inherit style conditions
diff --git a/plugins/openoffice/openoffice-write.c b/plugins/openoffice/openoffice-write.c
index 06db29d..4f03a2c 100644
--- a/plugins/openoffice/openoffice-write.c
+++ b/plugins/openoffice/openoffice-write.c
@@ -6706,7 +6706,8 @@ odf_write_axis (GnmOOExport *state, GogObject const *chart, char const *axis_rol
 		gsf_xml_out_add_cstr (state->xml, CHART "style-name", style_label);
 		odf_write_label (state, axis);
 		odf_write_axis_grid (state, axis);
-		odf_write_axis_categories (state, series);
+		if (ODF_BUBBLE != gtype)
+			odf_write_axis_categories (state, series);
 		gsf_xml_out_end_element (state->xml); /* </chart:axis> */
 	}
 }



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