Small tweak to get ObjectSelector working again.

svn: r6058
This commit is contained in:
Richard Taylor 2006-03-03 20:40:27 +00:00
parent f6195a9040
commit 2e86dd0641

View File

@ -430,10 +430,11 @@ class EditFamily(EditPrimary.EditPrimary):
for person_handle in self.obj.get_child_handle_list(): for person_handle in self.obj.get_child_handle_list():
person = self.db.get_person_from_handle(person_handle) person = self.db.get_person_from_handle(person_handle)
event_ref = person.get_birth_ref() event_ref = person.get_birth_ref()
event_handle = event_ref.ref if event_ref:
if event_handle: event_handle = event_ref.ref
event = self.db.get_event_from_handle(event_handle) if event_handle:
child_birth_years.append(event.get_date_object().get_year()) event = self.db.get_event_from_handle(event_handle)
child_birth_years.append(event.get_date_object().get_year())
if len(child_birth_years) > 0: if len(child_birth_years) > 0:
filter_spec.set_birth_year(min(child_birth_years)) filter_spec.set_birth_year(min(child_birth_years))