Index: calendar/gui/print.c
===================================================================
--- calendar/gui/print.c	(revision 34593)
+++ calendar/gui/print.c	(working copy)
@@ -2535,6 +2535,7 @@
 	pci.client = client;
 
 	operation = e_print_operation_new ();
+	gtk_print_operation_set_n_pages (operation, 1);
 
 	g_signal_connect (
 		operation, "draw-page",
Index: calendar/ChangeLog
===================================================================
--- calendar/ChangeLog	(revision 34594)
+++ calendar/ChangeLog	(working copy)
@@ -1,3 +1,9 @@
+2007-11-27  Milan Crha  <mcrha@redhat.com>
+
+	** Fix for bug #500024
+
+	* gui/print.c: (print_comp): Set number of pages first.
+
 2007-11-27  Milan Crha  <mcrha@redhat.com>
 
 	** Fix for bug #214645
