[gnumeric] Fix redo of print setup.
- From: Morten Welinder <mortenw src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnumeric] Fix redo of print setup.
- Date: Tue, 21 Apr 2009 09:25:46 -0400 (EDT)
commit 17b3811705ed8884f62ae86f2e66dfc57bdc44d2
Author: Morten Welinder <terra gnome org>
Date: Tue Apr 21 09:24:52 2009 -0400
Fix redo of print setup.
* src/commands.c (cmd_print_setup_redo): Only reverse the list
right after it was created.
---
ChangeLog | 3 +++
src/commands.c | 3 ++-
2 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index d6ef4a1..9ec312f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2009-04-21 Morten Welinder <terra gnome org>
+ * src/commands.c (cmd_print_setup_redo): Only reverse the list
+ right after it was created.
+
* src/print-info.c (print_info_free): Free here.
(print_info_load_defaults): Simply copy as text here.
(print_info_dup): Copy here.
diff --git a/src/commands.c b/src/commands.c
index 3822bb5..d13c92e 100644
--- a/src/commands.c
+++ b/src/commands.c
@@ -5583,7 +5583,8 @@ cmd_print_setup_redo (GnmCommand *cmd, WorkbookControl *wbc)
print_info_free (sheet->print_info);
sheet->print_info = print_info_dup (me->new_pi);
}
- me->old_pi = g_slist_reverse (me->old_pi);
+ if (save_pis)
+ me->old_pi = g_slist_reverse (me->old_pi);
}
return FALSE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]