Issue 4162, correction of box width.

svn: r15702
This commit is contained in:
Peter Landgren 2010-08-11 07:00:14 +00:00
parent 0199cd7da5
commit 919f632993

View File

@ -239,7 +239,7 @@ class AncestorTree(Report):
self.text[index] = subst.replace_and_clean(self.display) self.text[index] = subst.replace_and_clean(self.display)
for line in self.text[index]: for line in self.text[index]:
this_box_width = self.doc.string_width(font,line) this_box_width = self.doc.string_width(font,line) + (2 * em)
self.box_width = max(self.box_width, this_box_width) self.box_width = max(self.box_width, this_box_width)
self.lines = max(self.lines, len(self.text[index])) self.lines = max(self.lines, len(self.text[index]))