From 6e0e7d3763f7d8d896f2ff86a71f9f64a900143c Mon Sep 17 00:00:00 2001 From: Josip Date: Sat, 16 May 2015 16:43:48 +0200 Subject: [PATCH] Fix AgeStats gramplet --- gramps/plugins/gramplet/agestats.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gramps/plugins/gramplet/agestats.py b/gramps/plugins/gramplet/agestats.py index 0e68c4cf1..3f35a3710 100644 --- a/gramps/plugins/gramplet/agestats.py +++ b/gramps/plugins/gramplet/agestats.py @@ -249,9 +249,9 @@ class AgeStatsGramplet(Gramplet): """ # first, binify: #print "create_bargraph", hash - bin = [0] * (max_val/bin_size) + bin = [0] * int(max_val/bin_size) for value, hash_value in hash.items(): - bin[value/bin_size] += hash_value + bin[int(value/bin_size)] += hash_value text = "" max_bin = float(max(bin)) if max_bin != 0: