added maximum number of generations, fixed shadow scaling

svn: r5129
This commit is contained in:
Don Allingham
2005-08-26 20:42:56 +00:00
parent 293f89e73b
commit 4f2461aca5
2 changed files with 6 additions and 2 deletions

View File

@@ -305,7 +305,11 @@ class DescendChart(Report.Report):
g.set_height(self.box_height)
g.set_width(self.box_width)
g.set_paragraph_style("DC2-Normal")
g.set_shadow(1,self.box_gap/self.scale)
if self.scale < 1:
g.set_shadow(1,self.box_gap)
else:
g.set_shadow(1,self.box_gap/self.scale)
g.set_line_width(g.get_line_width()/self.scale)
g.set_fill_color((255,255,255))
self.doc.add_draw_style("DC2-box",g)