diff --git a/src/plugins/DesGraph.py b/src/plugins/DesGraph.py index d32f246f4..71e7726dd 100644 --- a/src/plugins/DesGraph.py +++ b/src/plugins/DesGraph.py @@ -109,10 +109,10 @@ class DescendantGraph(Report.Report): self.box_width = max(self.box_width,new_width) self.lines = max(self.lines,len(self.text[p_id])) + self.calc() def write_report(self): - self.calc() maxx,maxy = self.layout.max_size() maxx = int(maxx) diff --git a/src/plugins/FtmStyleDescendants.py b/src/plugins/FtmStyleDescendants.py index 8b80855fe..8a7589add 100644 --- a/src/plugins/FtmStyleDescendants.py +++ b/src/plugins/FtmStyleDescendants.py @@ -40,7 +40,7 @@ from gettext import gettext as _ import Report import BaseDoc import RelLib -import Utils +import ReportUtils import ReportOptions from DateHandler import displayer as dd import const @@ -705,7 +705,7 @@ class FtmDescendantReport(Report.Report): self.doc.start_cell('FTD-Normal') self.doc.start_paragraph('FTD-Child-Num') - self.doc.write_text("%s." % Utils.roman(child_index).lower()) + self.doc.write_text("%s." % ReportUtils.roman(child_index).lower()) self.doc.end_paragraph() self.doc.end_cell()