added maximum number of generations, fixed shadow scaling
svn: r5129
This commit is contained in:
parent
293f89e73b
commit
4f2461aca5
@ -1,6 +1,6 @@
|
|||||||
2005-08-26 Don Allingham <don@gramps-project.org>
|
2005-08-26 Don Allingham <don@gramps-project.org>
|
||||||
* src/plugins/DescendChart.py: Fix spacing and line drawing,
|
* src/plugins/DescendChart.py: Fix spacing and line drawing,
|
||||||
added maximum number of generations
|
added maximum number of generations, fixed shadow scaling
|
||||||
|
|
||||||
2005-08-25 Don Allingham <don@gramps-project.org>
|
2005-08-25 Don Allingham <don@gramps-project.org>
|
||||||
* src/SubstKeywords: Add new % options
|
* src/SubstKeywords: Add new % options
|
||||||
|
@ -305,7 +305,11 @@ class DescendChart(Report.Report):
|
|||||||
g.set_height(self.box_height)
|
g.set_height(self.box_height)
|
||||||
g.set_width(self.box_width)
|
g.set_width(self.box_width)
|
||||||
g.set_paragraph_style("DC2-Normal")
|
g.set_paragraph_style("DC2-Normal")
|
||||||
|
if self.scale < 1:
|
||||||
|
g.set_shadow(1,self.box_gap)
|
||||||
|
else:
|
||||||
g.set_shadow(1,self.box_gap/self.scale)
|
g.set_shadow(1,self.box_gap/self.scale)
|
||||||
|
|
||||||
g.set_line_width(g.get_line_width()/self.scale)
|
g.set_line_width(g.get_line_width()/self.scale)
|
||||||
g.set_fill_color((255,255,255))
|
g.set_fill_color((255,255,255))
|
||||||
self.doc.add_draw_style("DC2-box",g)
|
self.doc.add_draw_style("DC2-box",g)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user