[gnumeric] Fix array reading in plots using matrix data. [#765483]
- From: Jean Bréfort <jbrefort src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] Fix array reading in plots using matrix data. [#765483]
- Date: Sun, 24 Apr 2016 06:56:48 +0000 (UTC)
commit 807faaa5c807d77b0282afa2c91f863b7c5e5b32
Author: Jean Brefort <jean brefort normalesup org>
Date: Sun Apr 24 08:56:32 2016 +0200
Fix array reading in plots using matrix data. [#765483]
ChangeLog | 4 ++++
NEWS | 3 +++
src/graph.c | 2 +-
3 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 96aa3ac..a5370fa 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2016-04-24 Jean Brefort <jean brefort normalesup org>
+
+ * src/graph.c (gnm_go_data_matrix_load_values): fix array reading. [#765483]
+
2016-04-17 Jean Brefort <jean brefort normalesup org>
* configure.ac: protect against pxlib weirdness.
diff --git a/NEWS b/NEWS
index 8ced0fe..b448636 100644
--- a/NEWS
+++ b/NEWS
@@ -1,5 +1,8 @@
Gnumeric 1.12.29
+Jean:
+ * Fix array reading in plots using matrix data. [#765483]
+
Morten:
* Documentation fixes for complex numbers.
* Fix rare RANDBETWEEN problem.
diff --git a/src/graph.c b/src/graph.c
index 448a64e..20436fd 100644
--- a/src/graph.c
+++ b/src/graph.c
@@ -1333,7 +1333,7 @@ gnm_go_data_matrix_load_values (GODataMatrix *dat)
minimum = G_MAXDOUBLE;
for (col = 0; col < size.columns; col ++)
for (row = 0; row < size.rows; row++) {
- v = mat->val->v_array.vals[row][col];
+ v = mat->val->v_array.vals[col][row];
cur = col * size.rows + row;
if (VALUE_IS_EMPTY_OR_ERROR (v)) {
vals[row * size.columns + col] = go_nan;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]