From 90a172393d1ab284eefb5761dc6573aaef466b04 Mon Sep 17 00:00:00 2001 From: Gerald Britton Date: Thu, 28 Jan 2010 19:35:51 +0000 Subject: [PATCH] fix little bug checking for wrong condition svn: r14158 --- src/plugins/drawreport/StatisticsChart.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/drawreport/StatisticsChart.py b/src/plugins/drawreport/StatisticsChart.py index 864e295a3..b4319e120 100644 --- a/src/plugins/drawreport/StatisticsChart.py +++ b/src/plugins/drawreport/StatisticsChart.py @@ -838,7 +838,7 @@ class StatisticsChart(Report): pad = row_h * 0.5 # check maximum value - max_value = max(data[k] for k in lookup) if data else 0 + max_value = max(data[k] for k in lookup) if lookup else 0 # horizontal area for the gfx bars margin = 1.0 middle = width/2.0