aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
Diffstat (limited to 'calendar')
-rw-r--r--calendar/ChangeLog4
-rw-r--r--calendar/gui/print.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index ed09628954..7301871189 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,3 +1,7 @@
+2007-04-05 Matthew Barnes <mbarnes@redhat.com>
+
+ * gui/print.c (print_calendar): Fix a crasher. (#401539)
+
2007-04-01 Matthew Barnes <mbarnes@redhat.com>
** Fixes part of bug #373116
diff --git a/calendar/gui/print.c b/calendar/gui/print.c
index 50ef236ac0..fafa4db632 100644
--- a/calendar/gui/print.c
+++ b/calendar/gui/print.c
@@ -2647,11 +2647,11 @@ print_calendar (GnomeCalendar *gcal, gboolean preview, time_t date,
paper_size = gtk_paper_size_new ("iso_a4");
page_setup = gtk_page_setup_new();
gtk_page_setup_set_paper_size(page_setup, paper_size);
- range = range_selector_new (gpd, date, &view);
settings = gtk_print_settings_new ();
settings = e_print_load_settings ();
gpd = e_print_get_dialog_with_config (_("Print Item"), 0, settings);
+ range = range_selector_new (gpd, date, &view);
t = gtk_paper_size_get_default_top_margin (paper_size, GTK_UNIT_POINTS);
r = gtk_paper_size_get_default_right_margin (paper_size, GTK_UNIT_POINTS);