diff --git a/src/plugins/textreport/DescendReport.py b/src/plugins/textreport/DescendReport.py index 3ad120f23..5924f7d1d 100644 --- a/src/plugins/textreport/DescendReport.py +++ b/src/plugins/textreport/DescendReport.py @@ -144,9 +144,6 @@ class DescendantReport(Report): self.dump_dates(person) self.doc.end_paragraph() - if level >= self.max_generations: - return - for family_handle in person.get_family_handle_list(): family = self.database.get_family_from_handle(family_handle) @@ -160,6 +157,9 @@ class DescendantReport(Report): self.dump_dates(spouse) self.doc.end_paragraph() + if level >= self.max_generations: + continue + childlist = family.get_child_ref_list()[:] for child_ref in childlist: child = self.database.get_person_from_handle(child_ref.ref)