[gnumeric] Sheet Dup: Fix criticals for arrays.



commit d4e563edf064e0f622231405ff77f8f88d65e353
Author: Morten Welinder <terra gnome org>
Date:   Mon May 3 09:11:32 2010 -0400

    Sheet Dup: Fix criticals for arrays.

 ChangeLog   |    6 ++++++
 NEWS        |    1 +
 src/sheet.c |    2 +-
 3 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 71b6ee4..e5d5778 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2010-05-03  Morten Welinder  <terra gnome org>
+
+	* src/sheet.c (cb_sheet_cell_copy): Use gnm_cell_assign_value, not
+	gnm_cell_set_value, for non-corner array cells.  Fixes part of
+	#617469.
+
 2010-05-02  Morten Welinder  <terra gnome org>
 
 	* src/complex.c (complex_pow): Fix problem on negative real axis.
diff --git a/NEWS b/NEWS
index db72b98..884a718 100644
--- a/NEWS
+++ b/NEWS
@@ -27,6 +27,7 @@ Morten:
 	* Fix problem parsing comples numbers.
 	* Improve error handle for complex functions.
 	* Improve IMPOWER.
+	* Fix sheet duplicate criticals.  [Part of #617469]
 
 --------------------------------------------------------------------------
 Gnumeric 1.10.2
diff --git a/src/sheet.c b/src/sheet.c
index b979395..8b9913b 100644
--- a/src/sheet.c
+++ b/src/sheet.c
@@ -5422,7 +5422,7 @@ cb_sheet_cell_copy (gpointer unused, gpointer key, gpointer new_sheet_param)
 					GnmCell *out = sheet_cell_fetch (dst,
 						cell->pos.col + i,
 						cell->pos.row + j);
-					gnm_cell_set_value (out, in->value);
+					gnm_cell_assign_value (out, in->value);
 				}
 	} else {
 		GnmCell *new_cell = sheet_cell_create (dst, cell->pos.col, cell->pos.row);



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