diff options
-rw-r--r-- | addressbook/ChangeLog | 6 | ||||
-rw-r--r-- | addressbook/gui/widgets/e-minicard.c | 7 |
2 files changed, 12 insertions, 1 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index 04778a1829..e741f6bc5b 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,3 +1,9 @@ +2007-06-12 Wang Xin <jedy.wang@sun.com> + + Fixes #444248. + + * addressbook/gui/widgets/e-minicard.c + 2007-06-06 Nickolay V. Shmyrev <nshmyrev@yandex.ru> * Makefile.am: diff --git a/addressbook/gui/widgets/e-minicard.c b/addressbook/gui/widgets/e-minicard.c index 58897f3932..986dabc992 100644 --- a/addressbook/gui/widgets/e-minicard.c +++ b/addressbook/gui/widgets/e-minicard.c @@ -846,8 +846,13 @@ add_email_field (EMinicard *e_minicard, GList *email_list, gdouble left_width, i group = GNOME_CANVAS_GROUP( e_minicard ); for (l=email_list, le=emails; l!=NULL && count < limit && le!=NULL; l = l->next, le=le->next) { + gchar *tmp; - name = g_strdup_printf("%s:", get_email_location ((EVCardAttribute *) l->data)); + tmp = get_email_location ((EVCardAttribute *) l->data); + if (tmp) + name = g_strdup_printf("%s:", tmp); + else + name = g_strdup_printf(""); string = e_text_to_html (le->data, 0); new_item = e_minicard_label_new(group); |