5151: Latin American surname guessing fails

svn: r18083
This commit is contained in:
Michiel Nauta 2011-08-29 19:06:20 +00:00
parent 97077b5146
commit 319db30436

View File

@ -391,8 +391,9 @@ class ChildEmbedList(EmbeddedList):
mothername = gen.lib.Name()
preset_name(mother, mothername)
preset_name(father, name)
name.set_surname_list(name.get_surname_list[:1].append(
mothername.get_surname_list[:1]))
mothersurname = mothername.get_surname_list()[0]
mothersurname.set_primary(False)
name.set_surname_list([name.get_surname_list()[0], mothersurname])
return name
else:
return name