Fix tapering issue for fully filled graph

This commit is contained in:
Jan ONDREJ 2010-02-10 12:43:12 -05:00
parent 0273c0c501
commit 3f3ff6558a
1 changed files with 4 additions and 0 deletions

View File

@ -384,6 +384,10 @@ class Sparkline(gtk.DrawingArea):
draw_line(cairo_ct, cell_area, points)
if self.filled:
# XXX: Fixes a fully filled graph from having an oddly
# tapered in end (bug 560913). Need to figure out
# what's really going on.
points = [(0, cell_area.height)] + points
draw_fill(cairo_ct, cell_area, points, taper=True)
# Stop clipping