From 4bbc5c08f3a57c68f9ed7d1605b70715c6a1bede Mon Sep 17 00:00:00 2001 From: Peter Landgren Date: Wed, 11 Aug 2010 07:02:14 +0000 Subject: [PATCH] Issue 4162, correction of box width. svn: r15703 --- 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 6a1f7c77b..da74bfd95 100644 --- a/src/plugins/drawreport/AncestorTree.py +++ b/src/plugins/drawreport/AncestorTree.py @@ -236,7 +236,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]))