[goffice] Fixed surface plots import from excel. [#593937]



commit ecd168e4749f4a3ffba0db67d3c2bba4ef70a462
Author: Jean Brefort <jean brefort normalesup org>
Date:   Thu Sep 3 14:03:50 2009 +0200

    Fixed surface plots import from excel. [#593937]

 ChangeLog                          |    7 +++++++
 NEWS                               |    1 +
 plugins/plot_surface/gog-surface.c |    2 +-
 plugins/plot_surface/xl-surface.c  |    2 +-
 4 files changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index acd8163..e747381 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2009-09-03  Jean Brefort  <jean brefort normalesup org>
 
+	* plugins/plot_surface/gog-surface.c (gog_surface_view_render): missing
+	space.
+	* plugins/plot_surface/xl-surface.c (xl_surface_plot_class_init): X values
+	are not required, just suggested. [#593937]
+
+2009-09-03  Jean Brefort  <jean brefort normalesup org>
+
 	* goffice/utils/go-styled-object.c
 	(go_styled_object_set_cairo_fill): return FALSE when type is FILL_NONE.
 
diff --git a/NEWS b/NEWS
index a1a3cd3..ed45424 100644
--- a/NEWS
+++ b/NEWS
@@ -2,6 +2,7 @@ goffice 0.7.12:
 
 Jean:
 	* Deprecated GOStyle::outline. [#593608]
+	* Fixed import of surface plots from excel. [#593937]
 
 --------------------------------------------------------------------------
 goffice 0.7.11:
diff --git a/plugins/plot_surface/gog-surface.c b/plugins/plot_surface/gog-surface.c
index 88cba9b..55eb9ef 100644
--- a/plugins/plot_surface/gog-surface.c
+++ b/plugins/plot_surface/gog-surface.c
@@ -148,7 +148,7 @@ gog_surface_view_render (GogView *view, GogViewAllocation const *bbox)
 		imax = plot->columns;
 		jmax = plot->rows;
 	}
-	if (imax ==0 || jmax == 0)
+	if (imax == 0 || jmax == 0)
 		return;
 	area = gog_chart_view_get_plot_area (view->parent);
 
diff --git a/plugins/plot_surface/xl-surface.c b/plugins/plot_surface/xl-surface.c
index bc488b7..d6314c9 100644
--- a/plugins/plot_surface/xl-surface.c
+++ b/plugins/plot_surface/xl-surface.c
@@ -390,7 +390,7 @@ xl_surface_plot_class_init (GogSurfacePlotClass *klass)
 
 	{
 		static GogSeriesDimDesc dimensions[] = {
-			{ N_("X"), GOG_SERIES_REQUIRED, FALSE,
+			{ N_("X"), GOG_SERIES_SUGGESTED, FALSE,
 			  GOG_DIM_LABEL, GOG_MS_DIM_CATEGORIES },
 			{ N_("Z"), GOG_SERIES_REQUIRED, FALSE,
 			  GOG_DIM_VALUE, GOG_MS_DIM_VALUES },



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