fix Fan Chart for exception on right-click of person with no parent

Fixes #10349
This commit is contained in:
prculley 2018-01-03 10:25:29 -06:00 committed by Nick Hall
parent 1777cd4b29
commit 371a8a8f89

View File

@ -1598,6 +1598,8 @@ class FanChartGrampsGUI:
siblings.append(sib_id) siblings.append(sib_id)
# Collect a list of per-step-family step-siblings # Collect a list of per-step-family step-siblings
for parent_h in [fam.get_father_handle(), fam.get_mother_handle()]: for parent_h in [fam.get_father_handle(), fam.get_mother_handle()]:
if not parent_h:
continue
parent = self.dbstate.db.get_person_from_handle(parent_h) parent = self.dbstate.db.get_person_from_handle(parent_h)
other_families = [self.dbstate.db.get_family_from_handle(fam_id) other_families = [self.dbstate.db.get_family_from_handle(fam_id)
for fam_id in parent.get_family_handle_list() for fam_id in parent.get_family_handle_list()