From 324f2b9768e8b30849cea65f640b381f7f7ddfd0 Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Sun, 5 Aug 2001 01:01:31 +0000 Subject: Made it so that if there's one less match than possible compares are 2001-08-04 Christopher James Lahey * backend/ebook/e-card-compare.c (e_card_compare_name): Made it so that if there's one less match than possible compares are considered more VAGUE. Fixes Ximian bug #3400. svn path=/trunk/; revision=11685 --- addressbook/ChangeLog | 6 ++++++ addressbook/backend/ebook/e-card-compare.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index 5bd4b508ed..4476aeef0b 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,3 +1,9 @@ +2001-08-04 Christopher James Lahey + + * backend/ebook/e-card-compare.c (e_card_compare_name): Made it so + that if there's one less match than possible compares are + considered more VAGUE. Fixes Ximian bug #3400. + 2001-08-03 Christopher James Lahey * gui/component/select-names/e-select-names.c diff --git a/addressbook/backend/ebook/e-card-compare.c b/addressbook/backend/ebook/e-card-compare.c index 19352e4755..1de7e2b1f7 100644 --- a/addressbook/backend/ebook/e-card-compare.c +++ b/addressbook/backend/ebook/e-card-compare.c @@ -154,7 +154,7 @@ e_card_compare_name (ECard *card1, ECard *card2) return family_match ? E_CARD_MATCH_EXACT : E_CARD_MATCH_PARTIAL; if (possible == matches+1) - return family_match ? E_CARD_MATCH_PARTIAL : E_CARD_MATCH_VAGUE; + return family_match ? E_CARD_MATCH_VAGUE : E_CARD_MATCH_NONE; return E_CARD_MATCH_NONE; } -- cgit