[goffice] Fix build.



commit 33f84b9f5af04d390785de002a8dc04fed948e2b
Author: Jean Brefort <jean brefort normalesup org>
Date:   Sun Jul 29 14:20:38 2012 +0200

    Fix build.

 plugins/plot_surface/gog-xyz-surface.c |   17 +++++++++++++++--
 1 files changed, 15 insertions(+), 2 deletions(-)
---
diff --git a/plugins/plot_surface/gog-xyz-surface.c b/plugins/plot_surface/gog-xyz-surface.c
index 81686eb..b97944b 100644
--- a/plugins/plot_surface/gog-xyz-surface.c
+++ b/plugins/plot_surface/gog-xyz-surface.c
@@ -36,6 +36,19 @@
 /*****************************************************************************/
 
 enum {
+	XYZ_SURFACE_MISSING_AS_NAN,
+	XYZ_SURFACE_MISSING_AS_ZERO
+	/* we might add interpolation methods there */
+};
+
+static struct {unsigned n; char const *name;} missing_as_strings[] =
+{
+	{XYZ_SURFACE_MISSING_AS_NAN, "invalid"},
+	{XYZ_SURFACE_MISSING_AS_ZERO, "0"}
+};
+/*****************************************************************************/
+
+enum {
 	XYZ_SURFACE_PROP_0,
 	XYZ_SURFACE_PROP_ROWS,
 	XYZ_SURFACE_PROP_COLUMNS,
@@ -111,9 +124,9 @@ gog_xyz_surface_plot_build_matrix (GogXYZPlot const *plot, gboolean *cardinality
 	if (plot->rows < 2 || plot->columns < 2) {
 		/* we store the default value to avoid warnings about invalid values */
 		if (plot->rows < 2)
-			plot->rows = 10;
+			((GogXYZPlot *) plot)->rows = 10;
 		if (plot->columns < 2)
-			plot->columns = 10;
+			((GogXYZPlot *) plot)->columns = 10;
 		return NULL;
 	}
 	x_limits = go_range_sort (go_data_get_values (gog_xyz_plot_get_x_vals ((GogXYZPlot *) plot)), plot->columns);



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