accidently backed out some work dealing with shadows.

svn: r16390
This commit is contained in:
Craig J. Anderson 2011-01-16 04:35:07 +00:00
parent 21772a92db
commit 5fad02da57

View File

@ -512,7 +512,7 @@ class MakeReport():
self.canvas.set_box_height_width(box) self.canvas.set_box_height_width(box)
if box.width > self.doc.report_opts.max_box_width: if box.width > self.doc.report_opts.max_box_width:
self.doc.report_opts.max_box_width = box.width + box.shadow self.doc.report_opts.max_box_width = box.width #+ box.shadow
if box.level[1] > 0: if box.level[1] > 0:
if box.level[1] % 2 == 0 and box.height > self.father_ht: if box.level[1] % 2 == 0 and box.height > self.father_ht:
@ -947,6 +947,7 @@ class AncestorTree2Options(MenuReportOptions):
para_style.set_description(_('The basic style used for the ' + para_style.set_description(_('The basic style used for the ' +
'text display.')) 'text display.'))
default_style.add_paragraph_style("AC2-Normal", para_style) default_style.add_paragraph_style("AC2-Normal", para_style)
box_shadow = PT2CM(font.get_size()) * .6
font = FontStyle() font = FontStyle()
font.set_size(16) font.set_size(16)
@ -961,7 +962,7 @@ class AncestorTree2Options(MenuReportOptions):
## Draw styles ## Draw styles
graph_style = GraphicsStyle() graph_style = GraphicsStyle()
graph_style.set_paragraph_style("AC2-Normal") graph_style.set_paragraph_style("AC2-Normal")
graph_style.set_shadow(1, PT2CM(9)) #shadow set by text size graph_style.set_shadow(1, box_shadow) #shadow set by text size
graph_style.set_fill_color((255, 255, 255)) graph_style.set_fill_color((255, 255, 255))
default_style.add_draw_style("AC2-box", graph_style) default_style.add_draw_style("AC2-box", graph_style)