From 68fed70200fbc0fa6ed180c3b33340b48f1f47a6 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Tue, 13 Jan 2009 11:57:36 +0000 Subject: [PATCH] Fixed percentages shown in tooltip, thanks /Peter; related to Bug #2598 svn: r11617 --- src/plugins/DefaultGramplets.py | 2 +- src/plugins/GivenNameGramplet.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/DefaultGramplets.py b/src/plugins/DefaultGramplets.py index 261c8bf4d..fcccd9032 100644 --- a/src/plugins/DefaultGramplets.py +++ b/src/plugins/DefaultGramplets.py @@ -370,7 +370,7 @@ class SurnameCloudGramplet(Gramplet): size = make_tag_size(count, counts) self.link(text, 'Surname', representative_handle[surname], size, "%s, %d%% (%d)" % (text, - int((float(count)/total) * 100), + int((float(count)/total_surnames) * 100), count)) self.append_text(" ") showing += 1 diff --git a/src/plugins/GivenNameGramplet.py b/src/plugins/GivenNameGramplet.py index f69566083..56c56155d 100644 --- a/src/plugins/GivenNameGramplet.py +++ b/src/plugins/GivenNameGramplet.py @@ -121,7 +121,7 @@ class GivenNameCloudGramplet(Gramplet): size = make_tag_size(count, counts) self.link(text, 'Given', text, size, "%s, %d%% (%d)" % (text, - int((float(count)/total) * 100), + int((float(count)/total_givensubnames) * 100), count)) self.append_text(" ") showing += 1