diff options
Diffstat (limited to 'calendar/gui/print.c')
-rw-r--r-- | calendar/gui/print.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/calendar/gui/print.c b/calendar/gui/print.c index 08056f7947..c3685e6c88 100644 --- a/calendar/gui/print.c +++ b/calendar/gui/print.c @@ -1015,9 +1015,13 @@ print_attendees (GtkPrintContext *context, PangoFontDescription *font, cairo_t * if (tmp) g_string_append (text, " "); - /* it's usually in form of "mailto:email@domain" */ - tmp = strchr (attendee->value, ':'); - g_string_append (text, tmp ? tmp + 1 : attendee->value); + if (attendee->cn && *attendee->cn) + g_string_append (text, attendee->cn); + else { + /* it's usually in form of "mailto:email@domain" */ + tmp = strchr (attendee->value, ':'); + g_string_append (text, tmp ? tmp + 1 : attendee->value); + } tmp = get_role_as_string (attendee->role); if (tmp) { |