Fix test on legend graph attribute

review421001
(transplanted from 883480d210a7b3361afc69df26e766c62a4e76dc)
This commit is contained in:
Cédric Krier committed 2012-07-25 20:31:56 +02:00
1 parent 2d11b3886b
commit a814048582
1 file changed
+1 -1
@@ -268,7 +268,7 @@ class Graph(gtk.DrawingArea):
cr.restore()
def drawLegend(self, cr, width, height):
if not self.attrs.get('legend', True):
if not int(self.attrs.get('legend', 1)):
return
padding = 4