[gnumeric] fixed row and column interpretation in gnm_go_data_matrix_get_value



commit e8e632b2612f3c1db7a127e558e8fe7d966aae3c
Author: Jean Brefort <jean brefort normalesup org>
Date:   Sat Dec 5 10:19:50 2009 +0100

    fixed row and column interpretation in gnm_go_data_matrix_get_value

 ChangeLog   |    5 +++++
 src/graph.c |    3 ++-
 2 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index e6dd8c7..5a085fd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-12-05  Jean Brefort  <jean brefort normalesup org>
+
+	* src/graph.c (gnm_go_data_matrix_get_value): do not exchange row and
+	column.
+
 2009-12-03  Morten Welinder  <terra gnome org>
 
 	* src/value.c (parse_criteria): For matching, if we match the
diff --git a/src/graph.c b/src/graph.c
index 3478ac2..ccbf510 100644
--- a/src/graph.c
+++ b/src/graph.c
@@ -1063,7 +1063,8 @@ gnm_go_data_matrix_get_value (GODataMatrix *dat, unsigned i, unsigned j)
 		gnm_go_data_matrix_load_size (dat);
 
 	eval_pos_init_dep (&ep, &mat->dep);
-	v = value_dup (value_area_get_x_y (mat->val, i, j, &ep));
+	/* i is row and j is column */
+	v = value_dup (value_area_get_x_y (mat->val, j, i, &ep));
 	if (NULL == v)
 		return go_nan;
 



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