diff --git a/gramps/plugins/db/bsddb/write.py b/gramps/plugins/db/bsddb/write.py index 3e1eee3a1..4839f9537 100644 --- a/gramps/plugins/db/bsddb/write.py +++ b/gramps/plugins/db/bsddb/write.py @@ -1655,7 +1655,7 @@ class DbBsddb(DbBsddbRead, DbWriteBase, UpdateCallback): bsddb """ self.surname_list = sorted( - [s.decode('utf-8') for s in self.surnames.keys()], + [s.decode('utf-8') for s in set(self.surnames.keys())], key=glocale.sort_key) def add_to_surname_list(self, person, batch_transaction):