From 507262bcd6876a4f44a40bc57d059d47584541d5 Mon Sep 17 00:00:00 2001 From: Bharath Acharya Date: Fri, 7 Nov 2008 04:59:35 +0000 Subject: ** Fix for bug #440007 (bnc) Print Preview of Calendar Event Shows Blank 2008-11-07 Bharath Acharya ** Fix for bug #440007 (bnc) Print Preview of Calendar Event Shows Blank Page Before Data * gui/print.c: (print_comp_draw_real): Print the attendees only if its the first page. svn path=/trunk/; revision=36752 --- calendar/ChangeLog | 7 +++++++ calendar/gui/print.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/calendar/ChangeLog b/calendar/ChangeLog index b48ea70b2f..b1df97e4d2 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,10 @@ +2008-11-07 Bharath Acharya + + ** Fix for bug #440007 (bnc) + + * gui/print.c: (print_comp_draw_real): Print the attendees only if + its the first page. + 2008-11-04 Milan Crha ** Fix for bug #558354 diff --git a/calendar/gui/print.c b/calendar/gui/print.c index b446b4ff61..28cb2b7dc7 100644 --- a/calendar/gui/print.c +++ b/calendar/gui/print.c @@ -2520,7 +2520,7 @@ print_comp_draw_real (GtkPrintOperation *operation, top += 20; /* Attendees */ - if (e_cal_component_has_attendees (comp)) { + if ((page_nr == 0) && e_cal_component_has_attendees (comp)) { top = bound_text (context, font, _("Attendees: "), -1, 0.0, top, width, height, FALSE, &page_start, &pages); pango_font_description_free (font); font = get_font_for_size (12, PANGO_WEIGHT_NORMAL); -- cgit v1.2.3