From 054b618a737271fa64e9691e0d8d297cc281ed26 Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Mon, 21 Feb 2005 02:01:04 +0000 Subject: [PATCH] * src/docgen/LPRDoc.py (draw_path,draw_bar): Set proper linewidth. svn: r4065 --- gramps2/ChangeLog | 3 +++ gramps2/src/docgen/LPRDoc.py | 8 +++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index fac3f7a2b..5f9df91d4 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,3 +1,6 @@ +2005-02-20 Alex Roitman + * src/docgen/LPRDoc.py (draw_path,draw_bar): Set proper linewidth. + 2005-02-20 Don Allingham * src/ReportUtils.py: use today for age calculation if not death date exists. diff --git a/gramps2/src/docgen/LPRDoc.py b/gramps2/src/docgen/LPRDoc.py index 6e030f6fb..5dabfc944 100644 --- a/gramps2/src/docgen/LPRDoc.py +++ b/gramps2/src/docgen/LPRDoc.py @@ -990,6 +990,7 @@ class LPRDoc(BaseDoc.BaseDoc): def draw_path(self,style,path): self.brand_new_page = 0 stype = self.draw_styles[style] + self.gpc.setlinewidth(stype.get_line_width()) fill_color = [ val/255.0 for val in stype.get_fill_color()] color = [ val/255.0 for val in stype.get_color()] @@ -1082,9 +1083,10 @@ class LPRDoc(BaseDoc.BaseDoc): def draw_bar(self, style, x1, y1, x2, y2): self.brand_new_page = 0 - style = self.draw_styles[style] - fill_color = [ val/255.0 for val in style.get_fill_color() ] - color = [ val/255.0 for val in style.get_color() ] + stype = self.draw_styles[style] + self.gpc.setlinewidth(stype.get_line_width()) + fill_color = [ val/255.0 for val in stype.get_fill_color() ] + color = [ val/255.0 for val in stype.get_color() ] x = self.left_margin + cm2u(x1) y = self.top_margin - cm2u(y1)