From 58222b68b18ca364e75940764e2bc41b75d8e150 Mon Sep 17 00:00:00 2001 From: Brian Matherly Date: Thu, 15 Jan 2009 16:28:57 +0000 Subject: [PATCH] 0001973: Show all or no half siblings in Detailed Ancestral Report svn: r11626 --- src/plugins/DetAncestralReport.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/plugins/DetAncestralReport.py b/src/plugins/DetAncestralReport.py index 0316bee18..8cde4974f 100644 --- a/src/plugins/DetAncestralReport.py +++ b/src/plugins/DetAncestralReport.py @@ -163,12 +163,12 @@ class DetAncestorReport(Report): self.doc.page_break() self.doc.start_paragraph("DAR-Generation") text = _("Generation %d") % (generation+1) - mark = BaseDoc.IndexMark(text,BaseDoc.INDEX_TYPE_TOC,2) - self.doc.write_text(text,mark) + mark = BaseDoc.IndexMark(text, BaseDoc.INDEX_TYPE_TOC, 2) + self.doc.write_text(text, mark) self.doc.end_paragraph() generation = generation + 1 if self.childref: - self.prev_gen_handles= self.gen_handles.copy() + self.prev_gen_handles = self.gen_handles.copy() self.gen_handles.clear() person_handle = self.map[key] @@ -180,7 +180,8 @@ class DetAncestorReport(Report): for family_handle in person.get_family_handle_list(): family = self.database.get_family_from_handle(family_handle) mother_handle = family.get_mother_handle() - if mother_handle is None or \ + if mother_handle is None or \ + mother_handle not in self.map.values() or \ person.get_gender() == gen.lib.Person.FEMALE: if self.listchildren: self.write_children(family)