[evolution] Fix condition when to collapse addresses in To/Cc/Bcc headers



commit 8f145c216fd4e2fa19cde27b442f034cd574ac86
Author: Milan Crha <mcrha redhat com>
Date:   Tue Aug 7 09:29:21 2012 +0200

    Fix condition when to collapse addresses in To/Cc/Bcc headers

 em-format/e-mail-formatter-utils.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/em-format/e-mail-formatter-utils.c b/em-format/e-mail-formatter-utils.c
index db97ee6..994b257 100644
--- a/em-format/e-mail-formatter-utils.c
+++ b/em-format/e-mail-formatter-utils.c
@@ -174,7 +174,7 @@ e_mail_formatter_format_address (EMailFormatter *formatter,
 			continue;
 
 		/* Let us add a '...' if we have more addresses */
-		if (limit > 0 && (i == limit - 1)) {
+		if (limit > 0 && i == limit && a != NULL) {
 			const gchar *id = NULL;
 
 			if (strcmp (field, _("To")) == 0) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]