From 4e3ebe9db498e41f1d905ef3aaed0a62523e5c11 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Fri, 18 Sep 2009 01:41:31 +0000 Subject: [PATCH] #3223: Trunk revision 13203 causes crash of gramplet surnamecloud svn: r13220 --- src/plugins/gramplet/SurnameCloudGramplet.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/gramplet/SurnameCloudGramplet.py b/src/plugins/gramplet/SurnameCloudGramplet.py index a573f18d7..535b02078 100644 --- a/src/plugins/gramplet/SurnameCloudGramplet.py +++ b/src/plugins/gramplet/SurnameCloudGramplet.py @@ -111,7 +111,8 @@ class SurnameCloudGramplet(Gramplet): cloud_values.append( count ) cloud_names.sort(key=lambda k:k[1]) - counts = reversed(set(cloud_values)) + counts = list(set(cloud_values)) + counts.sort(reverse=True) line = 0 ### All done! # Now, find out how many we can display without going over top_size: