From 6b1c15db54c916be0adfed9cfe84e192709fb0f2 Mon Sep 17 00:00:00 2001 From: Benny Malengier Date: Tue, 30 Mar 2010 13:41:23 +0000 Subject: [PATCH] 3783: NewPerson Dialogue: "available surname list" shows each occurrence of a family name instead of one per family name svn: r14975 --- 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 d6fc2a534..186a4a0f9 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: