[gnumeric] Undo: fix problem with col widths after paste undo.



commit cb72b8ab018c08c7b4af003aa91f0c1f061778f1
Author: Morten Welinder <terra gnome org>
Date:   Sun May 6 18:55:10 2018 -0400

    Undo: fix problem with col widths after paste undo.

 ChangeLog      |    2 ++
 src/commands.c |    4 +++-
 2 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 7da4579..1f39ce7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,8 @@
 
        * src/commands.c (cmd_area_set_array_expr): The clipboard now
        takes care of restoring row heights and column widths.
+       (cmd_paste_copy_impl): After the initial "do", always restore
+       column widths and row heights.
 
 2018-05-04  Morten Welinder  <terra gnome org>
 
diff --git a/src/commands.c b/src/commands.c
index 871d4fe..32d7c05 100644
--- a/src/commands.c
+++ b/src/commands.c
@@ -2979,7 +2979,9 @@ cmd_paste_copy_impl (GnmCommand *cmd, WorkbookControl *wbc,
 
        contents = clipboard_copy_range (me->dst.sheet, &me->dst.range);
        if (me->has_been_through_cycle)
-               me->dst.paste_flags = PASTE_CONTENTS |
+               me->dst.paste_flags =
+                       PASTE_CONTENTS |
+                       PASTE_COLUMN_WIDTHS | PASTE_ROW_HEIGHTS |
                        (me->dst.paste_flags & PASTE_ALL_SHEET);
 
        if (clipboard_paste_region (me->contents, &me->dst,


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