From c345a7f221b7a04afaa255dbc2e8fd412ab65a18 Mon Sep 17 00:00:00 2001 From: Brian Matherly Date: Mon, 7 Aug 2006 02:53:28 +0000 Subject: [PATCH] src/plugins/DetAncestralReport.py: print children when no mother exists svn: r7143 --- gramps2/ChangeLog | 3 +++ gramps2/src/plugins/DetAncestralReport.py | 8 +++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index a6565de98..4c61e7e5e 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,3 +1,6 @@ +2006-08-06 Brian Matherly + * src/plugins/DetAncestralReport.py: print children when no mother exists + 2006-08-06 Alex Roitman * src/DataViews/_PlaceView.py: Add sidebar filter. * src/FilterEditor/_EditRule.py: Support place filters. diff --git a/gramps2/src/plugins/DetAncestralReport.py b/gramps2/src/plugins/DetAncestralReport.py index d371074ef..cc78d8d88 100644 --- a/gramps2/src/plugins/DetAncestralReport.py +++ b/gramps2/src/plugins/DetAncestralReport.py @@ -177,11 +177,13 @@ class DetAncestorReport(Report): self.gen_handles[person_handle] = key dupPerson = self.write_person(key) if dupPerson == 0: # Is this a duplicate ind record - if person.get_gender() == RelLib.Person.FEMALE and \ - self.listChildren: + if self.listChildren: for family_handle in person.get_family_handle_list(): family = self.database.get_family_from_handle(family_handle) - self.write_children(family) + mother_handle = family.get_mother_handle() + if mother_handle == None or \ + person.get_gender() == RelLib.Person.FEMALE: + self.write_children(family) if self.includeSources: self.write_endnotes()