From cb27d546e94a2b45f2f60f4ae2fc755d35447df2 Mon Sep 17 00:00:00 2001 From: Paul Franklin Date: Sat, 17 Dec 2016 18:30:55 -0800 Subject: [PATCH] 9612: Problem adding parents [with Latin names] --- gramps/gui/editors/editfamily.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/gramps/gui/editors/editfamily.py b/gramps/gui/editors/editfamily.py index 7ccca0c91..0c5387b71 100644 --- a/gramps/gui/editors/editfamily.py +++ b/gramps/gui/editors/editfamily.py @@ -1207,16 +1207,17 @@ class EditFamily(EditPrimary): child = self.db.get_person_from_handle(ref.ref) if child: pname = child.get_primary_name() - preset_name(child, name) - if len(name.get_surname_list()) < 2: + preset_name(child, name) # add the known family surnames, etc. + surnames = name.get_surname_list() + if len(surnames) < 2: return name else: #return first for the father, and last for the mother if parent == 'father': - name.set_surname_list(name.get_surname_list()[0]) + name.set_surname_list([surnames[0]]) return name else: - name.set_surname_list(name.get_surname_list()[-1]) + name.set_surname_list([surnames[-1]]) return name return name