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 f55021fd57
commit a6a099be17
1 file changed
+1 -1
@@ -276,7 +276,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