Fix AncestorTree so add siblings to center person works (#852)

Fixes #11215
This commit is contained in:
Paul Culley 2019-07-31 16:48:55 -05:00 committed by GitHub
parent 949296a801
commit f7d58f4c28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -352,7 +352,7 @@ class MakeAncestorTree(AscendPerson):
mee = self.add_person((1, 1, move+rrr), kid, self.center_family)
line.add_from(mee)
#mee.level = (0, 1, level - (len(mykids)//2)+rrr)
mee.line_to = line
def start(self, person_id):
""" go ahead and make it happen """

View File

@ -518,7 +518,9 @@ class AscendPerson(_StopRecurse, _PersonSeen):
"""
A simple header to make sure we pass in the correct information
"""
return self.__iterate(1, 1, person_handle, None)
person = self.database.get_person_from_handle(person_handle)
return self.__iterate(1, 1, person_handle,
person.get_main_parents_family_handle())
#------------