From 919f632993ead97b9b4d576b5bcb3bd9c78f8ee0 Mon Sep 17 00:00:00 2001 From: Peter Landgren Date: Wed, 11 Aug 2010 07:00:14 +0000 Subject: [PATCH] Issue 4162, correction of box width. svn: r15702 --- src/plugins/drawreport/AncestorTree.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/drawreport/AncestorTree.py b/src/plugins/drawreport/AncestorTree.py index 19b6e6dbe..6bd287595 100644 --- a/src/plugins/drawreport/AncestorTree.py +++ b/src/plugins/drawreport/AncestorTree.py @@ -239,7 +239,7 @@ class AncestorTree(Report): self.text[index] = subst.replace_and_clean(self.display) 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.lines = max(self.lines, len(self.text[index]))