Skip to content

Commit

Permalink
Item2486: we need to keep the original counts to properly display the…
Browse files Browse the repository at this point in the history
…m in a tooltip

git-svn-id: http://svn.foswiki.org/trunk/TagCloudPlugin@5764 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
MichaelDaum authored and MichaelDaum committed Dec 10, 2009
1 parent ab6062c commit 060dafe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/Foswiki/Plugins/TagCloudPlugin.pm
Expand Up @@ -24,7 +24,7 @@ use vars qw(
);

$VERSION = '$Rev$';
$RELEASE = 'v2.20';
$RELEASE = 'v2.21';
$NO_PREFS_IN_TOPIC = 1;
$SHORTDESCRIPTION = 'Renders a tag cloud given a list of terms';

Expand Down
3 changes: 2 additions & 1 deletion lib/Foswiki/Plugins/TagCloudPlugin/Core.pm
Expand Up @@ -501,6 +501,7 @@ sub handleTagCloud {
# filter low frequencies, compute floor, ceiling
my $floor = -1;
my $ceiling = 0;
my %origTermCount = %termCount;
foreach my $term (keys %termCount) {

# normalization
Expand Down Expand Up @@ -585,7 +586,7 @@ sub handleTagCloud {
'index' => $index,
'weight' => $weight,
'group' => $group,
'count' => $termCount{$term} );
'count' => $origTermCount{$term});
if (defined($termInfo{$term})) {
%params = (%params, %{ $termInfo{$term} });
}
Expand Down

0 comments on commit 060dafe

Please sign in to comment.