From eb052c160e794f229642f1a8878fe69d24be9d4b Mon Sep 17 00:00:00 2001 From: Benny Malengier Date: Tue, 30 Mar 2010 13:41:26 +0000 Subject: [PATCH] 3783: NewPerson Dialogue: "available surname list" shows each occurrence of a family name instead of one per family name svn: r14976 --- src/gen/db/write.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gen/db/write.py b/src/gen/db/write.py index e3a63ec8b..4204a12a0 100644 --- a/src/gen/db/write.py +++ b/src/gen/db/write.py @@ -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: