[gnumeric] Always update the right series entry. [#620719]



commit 77dc9e7c3853ef3b24c525f390634b619124d8db
Author: Jean Brefort <jean brefort normalesup org>
Date:   Tue Jun 8 20:15:46 2010 +0200

    Always update the right series entry. [#620719]

 NEWS                              |    1 +
 src/widgets/ChangeLog             |    5 +++++
 src/widgets/gnumeric-expr-entry.c |    3 ++-
 3 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/NEWS b/NEWS
index b712744..420e977 100644
--- a/NEWS
+++ b/NEWS
@@ -15,6 +15,7 @@ Andreas:
 
 Jean:
 	* Do not ungrab a not grabbed item. [#620369]
+	* Always update the right series entry. [#620719]
 
 Morten:
 	* Make sure windows for help commands show up on right screen.
diff --git a/src/widgets/ChangeLog b/src/widgets/ChangeLog
index 8bfcd95..0b354b0 100644
--- a/src/widgets/ChangeLog
+++ b/src/widgets/ChangeLog
@@ -1,3 +1,8 @@
+2010-06-08  Jean Brefort  <jean brefort normalesup org>
+
+	* gnumeric-expr-entry.c (gnm_expr_entry_parse): do not update the wrong
+	entry. [#620719]
+
 2010-05-30  Morten Welinder <terra gnome org>
 
 	* Release 1.10.5
diff --git a/src/widgets/gnumeric-expr-entry.c b/src/widgets/gnumeric-expr-entry.c
index 955e207..42dc444 100644
--- a/src/widgets/gnumeric-expr-entry.c
+++ b/src/widgets/gnumeric-expr-entry.c
@@ -1754,7 +1754,8 @@ gnm_expr_entry_parse (GnmExprEntry *gee, GnmParsePos const *pp,
 	if (strcmp (str, text)) {
 		SheetControlGUI *scg = wbcg_cur_scg (gee->wbcg);
 		Rangesel const *rs = &gee->rangesel;
-		if (start_sel && sc_sheet (SHEET_CONTROL (scg)) == rs->ref.a.sheet) {
+		if (gee == wbcg_get_entry_logical (gee->wbcg) &&
+		    start_sel && sc_sheet (SHEET_CONTROL (scg)) == rs->ref.a.sheet) {
 			scg_rangesel_bound (scg,
 				rs->ref.a.col, rs->ref.a.row,
 				rs->ref.b.col, rs->ref.b.row);



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