3783: NewPerson Dialogue: "available surname list" shows each occurrence of a family name instead of one per family name

svn: r14975
This commit is contained in:
Benny Malengier 2010-03-30 13:41:23 +00:00
parent 902b343897
commit 6b1c15db54

View File

@ -1298,7 +1298,7 @@ class DbBsddb(DbBsddbRead, DbWriteBase, UpdateCallback):
return
name = unicode(person.get_primary_name().get_surname())
i = bisect.bisect(self.surname_list, name)
if 0 < i < len(self.surname_list):
if 0 < i <= len(self.surname_list):
if self.surname_list[i-1] != name:
self.surname_list.insert(i, name)
else: