DescendantTree report; fix crashes and Title spacing for Gramps42 (#537)
* Fix DescendentTree report for crashes Fixes #10377 * Fix DescendentTree report; more space beneath Title Issue #10377
This commit is contained in:
parent
09bc188a1c
commit
ac6eb9661c
@ -464,8 +464,9 @@ class RecurseDown:
|
|||||||
#calculate the text.
|
#calculate the text.
|
||||||
myself.calc_text(self.database, indi_handle, fams_handle)
|
myself.calc_text(self.database, indi_handle, fams_handle)
|
||||||
|
|
||||||
myself.add_mark(self.database,
|
if indi_handle:
|
||||||
self.database.get_person_from_handle(indi_handle))
|
myself.add_mark(self.database,
|
||||||
|
self.database.get_person_from_handle(indi_handle))
|
||||||
|
|
||||||
self.add_to_col(myself)
|
self.add_to_col(myself)
|
||||||
|
|
||||||
@ -682,8 +683,9 @@ class MakePersonTree(RecurseDown):
|
|||||||
family2 = family2_h = None
|
family2 = family2_h = None
|
||||||
if self.do_parents:
|
if self.do_parents:
|
||||||
family2_h = center1.get_main_parents_family_handle()
|
family2_h = center1.get_main_parents_family_handle()
|
||||||
family2 = self.database.get_family_from_handle(family2_h)
|
if family2_h:
|
||||||
|
family2 = self.database.get_family_from_handle(family2_h)
|
||||||
|
|
||||||
mother2_h = father2_h = None
|
mother2_h = father2_h = None
|
||||||
if family2:
|
if family2:
|
||||||
father2_h = family2.get_father_handle()
|
father2_h = family2.get_father_handle()
|
||||||
|
@ -669,7 +669,7 @@ class TitleBox(BoxBase):
|
|||||||
return
|
return
|
||||||
#fix me. width should be the printable area
|
#fix me. width should be the printable area
|
||||||
self.width = PT2CM(self.doc.string_width(self.font, self.text))
|
self.width = PT2CM(self.doc.string_width(self.font, self.text))
|
||||||
self.height = PT2CM(self.font.get_size() * 1.2)
|
self.height = PT2CM(self.font.get_size() * 2)
|
||||||
|
|
||||||
def _get_names(self, persons, name_displayer):
|
def _get_names(self, persons, name_displayer):
|
||||||
""" A helper function that receives a list of persons and
|
""" A helper function that receives a list of persons and
|
||||||
|
Loading…
Reference in New Issue
Block a user