From 7235d85b7e54f8f244a2487618b083414039f522 Mon Sep 17 00:00:00 2001 From: Sivaiah Nallagatla Date: Sun, 6 Feb 2005 18:34:35 +0000 Subject: changed the loop termination check to E_CONACT_LAST_SIMPLE_STRING -1 so 2005-01-06 Sivaiah Nallagatla * e-minicard.c (remodel) : changed the loop termination check to E_CONACT_LAST_SIMPLE_STRING -1 so that we will avoid displaying revision field value in the minicard svn path=/trunk/; revision=28725 --- addressbook/gui/widgets/e-minicard.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'addressbook/gui/widgets') diff --git a/addressbook/gui/widgets/e-minicard.c b/addressbook/gui/widgets/e-minicard.c index 0abdff7fce..2e0579c24d 100644 --- a/addressbook/gui/widgets/e-minicard.c +++ b/addressbook/gui/widgets/e-minicard.c @@ -840,7 +840,7 @@ remodel( EMinicard *e_minicard ) list = e_minicard->fields; e_minicard->fields = NULL; - for(field = E_CONTACT_FULL_NAME; field != E_CONTACT_LAST_SIMPLE_STRING && count < 5; field++) { + for(field = E_CONTACT_FULL_NAME; field != (E_CONTACT_LAST_SIMPLE_STRING -1) && count < 5; field++) { EMinicardField *minicard_field = NULL; if (field == E_CONTACT_FAMILY_NAME || field == E_CONTACT_GIVEN_NAME) -- cgit v1.2.3