[goffice] [GOData] Fix number of dimension of GODataScalar.



commit 64380844d66470035f1174cd89a7529a2d354674
Author: Emmanuel Pacaud <emmanuel pacaud lapp in2p3 fr>
Date:   Thu Apr 23 11:14:56 2009 +0200

    [GOData] Fix number of dimension of GODataScalar.
    
    Return 0 instead of 1.
---
 goffice/data/go-data.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/goffice/data/go-data.c b/goffice/data/go-data.c
index cc86bee..cffbf01 100644
--- a/goffice/data/go-data.c
+++ b/goffice/data/go-data.c
@@ -500,7 +500,7 @@ go_data_get_matrix_string (GOData *data, unsigned int column, unsigned int row)
 static unsigned int
 _data_scalar_get_n_sizes (GOData *data)
 {
-	return 1;
+	return 0;
 }
 
 static double *
@@ -525,13 +525,13 @@ _data_scalar_get_bounds (GOData *data, double *minimum, double *maximum)
 }
 
 static double
-_data_scalar_get_value (GOData *data, unsigned int *positions)
+_data_scalar_get_value (GOData *data, unsigned int *coordinates)
 {
 	return go_data_scalar_get_value ((GODataScalar *) data);
 }
 
 static char *
-_data_scalar_get_string (GOData *data, unsigned int *positions)
+_data_scalar_get_string (GOData *data, unsigned int *coordinates)
 {
 	return g_strdup (go_data_scalar_get_str ((GODataScalar *) data));
 }



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