[gnumeric] GUI: Fix paste special undo problem. [#667702]



commit 68608a6c3a3a689e614adc53ef7f7536b6ba19d1
Author: Morten Welinder <terra gnome org>
Date:   Wed Jan 11 13:58:59 2012 -0500

    GUI: Fix paste special undo problem.  [#667702]

 ChangeLog      |    5 +++++
 NEWS           |    1 +
 src/commands.c |    2 +-
 3 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index f9013cf..dfa8bd7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2012-01-11  Morten Welinder  <terra gnome org>
+
+	* src/commands.c (cmd_paste_copy_impl): Fix undo problem.
+	[#667702]
+
 2012-01-10  Morten Welinder  <terra gnome org>
 
 	* src/wbc-gtk.c (wbc_gtk_init): Switch from GtkTable to GtkGrid.
diff --git a/NEWS b/NEWS
index 29d04df..f133d92 100644
--- a/NEWS
+++ b/NEWS
@@ -19,6 +19,7 @@ Morten:
 	* Fix problems with underlines and rotated cells.  [#667152]
 	* Fix multihead problem with auto-expressions.
 	* Fix allocate-free mismatch in sheet management dialog.
+	* Fix paste special undo problem.  [#667702]
 
 --------------------------------------------------------------------------
 Gnumeric 1.11.1
diff --git a/src/commands.c b/src/commands.c
index abcd85e..6146a26 100644
--- a/src/commands.c
+++ b/src/commands.c
@@ -2984,10 +2984,10 @@ cmd_paste_copy_impl (GnmCommand *cmd, WorkbookControl *wbc,
 	old_objects = get_new_objects (me->dst.sheet, NULL);
 
 	contents = clipboard_copy_range (me->dst.sheet, &me->dst.range);
-	actual_dst = me->dst;
 	if (me->has_been_through_cycle)
 		me->dst.paste_flags = PASTE_CONTENTS |
 			(me->dst.paste_flags & PASTE_ALL_TYPES);
+	actual_dst = me->dst;
 	if (clipboard_paste_region (me->contents, &actual_dst, GO_CMD_CONTEXT (wbc))) {
 		/* There was a problem, avoid leaking */
 		cellregion_unref (contents);



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