[gnumeric] Sorting: fix undo with respect to cell comments.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] Sorting: fix undo with respect to cell comments.
- Date: Sat, 20 Mar 2021 01:28:26 +0000 (UTC)
commit cedcbfed403421e6c951d4796e8e6bac58bf8e81
Author: Morten Welinder <terra gnome org>
Date: Fri Mar 19 21:28:08 2021 -0400
Sorting: fix undo with respect to cell comments.
ChangeLog | 4 ++++
NEWS | 3 +++
src/commands.c | 2 +-
3 files changed, 8 insertions(+), 1 deletion(-)
---
diff --git a/ChangeLog b/ChangeLog
index 6f14f69cd..a50a689df 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2021-03-19 Morten Welinder <terra gnome org>
+
+ * src/commands.c (cmd_sort_undo): Paste cell comments too.
+
2021-03-14 Morten Welinder <terra gnome org>
* configure.ac: Post-release bump.
diff --git a/NEWS b/NEWS
index 1bb173941..043fb07e0 100644
--- a/NEWS
+++ b/NEWS
@@ -1,5 +1,8 @@
Gnumeric 1.12.50
+Morten:
+ * Fix undo problem with sorting and cell comments.
+
--------------------------------------------------------------------------
Gnumeric 1.12.49
diff --git a/src/commands.c b/src/commands.c
index b4d67ca4c..b11ae9ec0 100644
--- a/src/commands.c
+++ b/src/commands.c
@@ -2135,7 +2135,7 @@ cmd_sort_undo (GnmCommand *cmd, WorkbookControl *wbc)
GnmPasteTarget pt;
paste_target_init (&pt, data->sheet, data->range,
- PASTE_CONTENTS | PASTE_FORMATS |
+ PASTE_CONTENTS | PASTE_FORMATS | PASTE_COMMENTS |
(data->retain_formats ? PASTE_FORMATS : 0));
clipboard_paste_region (me->old_contents,
&pt,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]