aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2007-04-06 03:01:34 +0800
committerMatthew Barnes <mbarnes@src.gnome.org>2007-04-06 03:01:34 +0800
commit60cebace9e2207b7795229e39bafb9cc6959d062 (patch)
treee1163a53a3049008cc000e6e0352a093e67c3587
parentef8cb2f8882743b446c81f31476e916a8eb823ab (diff)
downloadgsoc2013-evolution-60cebace9e2207b7795229e39bafb9cc6959d062.tar.gz
gsoc2013-evolution-60cebace9e2207b7795229e39bafb9cc6959d062.tar.zst
gsoc2013-evolution-60cebace9e2207b7795229e39bafb9cc6959d062.zip
Fix a crasher. (#401539)
2007-04-05 Matthew Barnes <mbarnes@redhat.com> * gui/print.c (print_calendar): Fix a crasher. (#401539) svn path=/branches/gnome-2-18/; revision=33389
-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 acf31bff53..75b7aeb4bf 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-03-29 Matthew Barnes <mbarnes@redhat.com>
* gui/e-cal-component-memo-preview.c (write_html):
diff --git a/calendar/gui/print.c b/calendar/gui/print.c
index e9629c0648..0146e4890e 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);