From f7d58f4c28749568bcdba74b47dc276683cdc69c Mon Sep 17 00:00:00 2001 From: Paul Culley Date: Wed, 31 Jul 2019 16:48:55 -0500 Subject: [PATCH] Fix AncestorTree so add siblings to center person works (#852) Fixes #11215 --- gramps/plugins/drawreport/ancestortree.py | 2 +- gramps/plugins/lib/librecurse.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/gramps/plugins/drawreport/ancestortree.py b/gramps/plugins/drawreport/ancestortree.py index f22369f00..d5e1feea5 100644 --- a/gramps/plugins/drawreport/ancestortree.py +++ b/gramps/plugins/drawreport/ancestortree.py @@ -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 """ diff --git a/gramps/plugins/lib/librecurse.py b/gramps/plugins/lib/librecurse.py index fa161f9cd..4467225b8 100644 --- a/gramps/plugins/lib/librecurse.py +++ b/gramps/plugins/lib/librecurse.py @@ -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()) #------------