[gnumeric] Fix formula interpretation in plot series. [#662237]



commit f9d8b779fe12362814e383de682b6afd4d5c84c6
Author: Jean Brefort <jean brefort normalesup org>
Date:   Sun Jan 8 21:38:00 2012 +0100

    Fix formula interpretation in plot series. [#662237]

 ChangeLog   |    5 +++++
 NEWS        |    3 +++
 src/graph.c |    2 +-
 3 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 816ad33..4b82a63 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2012-01-08  Jean Brefort  <jean brefort normalesup org>
+
+	* src/graph.c (gnm_go_data_vector_load_len): use
+	GNM_EXPR_EVAL_ARRAY_CONTEXT, fixes #667237.
+
 2012-01-08  Morten Welinder  <terra gnome org>
 
 	* src/expr.c (gnm_expr_top_eval): When we see
diff --git a/NEWS b/NEWS
index 841a217..29d04df 100644
--- a/NEWS
+++ b/NEWS
@@ -5,6 +5,9 @@ Andreas:
 	* Implement ctrl-click cell deselection. [#610696]
 	* Fix LaTeX export of cyrillic. [#666340]
 
+Jean:
+	* Fix formula interpretation in plot series (with Morten's help). [#662237]
+
 Morten:
 	* Improve parsing on numbers with non-ascii digits.
 	* Make solver check for exceeding the time limit.
diff --git a/src/graph.c b/src/graph.c
index acd13ba..f421222 100644
--- a/src/graph.c
+++ b/src/graph.c
@@ -526,7 +526,7 @@ gnm_go_data_vector_load_len (GODataVector *dat)
 					value_release (cur->data);
 			}
 			vec->val = gnm_expr_top_eval (vec->dep.texpr, &ep,
-				GNM_EXPR_EVAL_PERMIT_NON_SCALAR | GNM_EXPR_EVAL_PERMIT_EMPTY);
+				GNM_EXPR_EVAL_PERMIT_NON_SCALAR | GNM_EXPR_EVAL_PERMIT_EMPTY | GNM_EXPR_EVAL_ARRAY_CONTEXT);
 		}
 		g_slist_free (l);
 	}



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