From 088e14f6e74dcae2ea14ed11e4a8a4c09e29b260 Mon Sep 17 00:00:00 2001 From: Sushma Rai Date: Fri, 30 Sep 2005 13:26:29 +0000 Subject: Not allowing partial comparisons while finding duplicate entries. Fixes #315034. Patch submitted by "Devashish Sharma ". svn path=/trunk/; revision=30443 --- addressbook/ChangeLog | 7 +++++++ addressbook/gui/merging/eab-contact-compare.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'addressbook') diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index 9d642c2758..3c2e3bfba3 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,3 +1,10 @@ +2005-09-30 Devashish Sharma + + * gui/merging/eab-contact-compare.c + (name_fragment_match_with_synonyms): Changed name compare logic where + it matches names with starting part same. (it matches rob and robert). + Fixes #315034. + 2005-09-30 Sarfraaz Ahmed * gui/component/addressbook.c (remove_parameters_from_uri) : This now diff --git a/addressbook/gui/merging/eab-contact-compare.c b/addressbook/gui/merging/eab-contact-compare.c index 0c28684f23..60a95c59f3 100644 --- a/addressbook/gui/merging/eab-contact-compare.c +++ b/addressbook/gui/merging/eab-contact-compare.c @@ -115,7 +115,7 @@ name_fragment_match_with_synonyms (const gchar *a, const gchar *b, gboolean stri if (!(a && b && *a && *b)) return FALSE; - if (name_fragment_match (a, b, strict)) + if(!e_utf8_casefold_collate (a, b)) return TRUE; /* Check for nicknames. Yes, the linear search blows. */ -- cgit v1.2.3