* src/ChooseParents.py (__init__): Handle events with empty dates.

svn: r4913
This commit is contained in:
Alex Roitman 2005-07-08 22:37:23 +00:00
parent 0da65704b9
commit 7ee891943f
2 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,7 @@
2005-07-08 Alex Roitman <shura@gramps-project.org>
* src/plugins/GraphViz.py: Use single margin value, properly use
cm for margin, properly use 2 digits after converting to inches.
* src/ChooseParents.py (__init__): Handle events with empty dates.
2005-07-07 Julio Sanchez <jsanchez@users.sourceforge.net>
* src/docgen/OpenOfficeDoc.py: Compute correctly the draw:viewBox to

View File

@ -103,8 +103,8 @@ class ChooseParents:
self.all_females_filter = GenericFilter.GenericFilter()
self.all_females_filter.add_rule(GenericFilter.IsFemale([]))
bh = person.birth_handle
if bh and self.db.get_event_from_handle(bh).date.sortval != 0:
bev = self.db.get_event_from_handle(person.birth_handle)
if bev and bev.date and bev.date.sortval != 0:
self.likely_females_filter = self.build_likely(False)
self.likely_males_filter = self.build_likely(True)
else: