Skip to content

Commit

Permalink
Fixed ENV debug option, removed stroke from cloud()
Browse files Browse the repository at this point in the history
  • Loading branch information
c0bra committed Feb 10, 2012
1 parent 363e71a commit dbee68a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Image/WordCloud.pm
Expand Up @@ -20,7 +20,7 @@ use Math::PlanePath::ArchimedeanChords;

our $VERSION = '0.02_01';

$ENV{IWC_DEBUG} = 0 if ! defined $ENV{IWC_DEBUG};
$ENV{IWC_DEBUG} = 0 if ! defined $ENV{IWC_DEBUG} || ! $ENV{IWC_DEBUG};

=head1 NAME
Expand Down Expand Up @@ -608,7 +608,7 @@ sub cloud {
}

my @bounding = $text->draw($x, $y, 0);
$self->_stroke_bbox($gd, undef, @bounding);
#$self->_stroke_bbox($gd, undef, @bounding);

my @rect = ($bounding[6], $bounding[7], $bounding[2] - $bounding[6], $bounding[3] - $bounding[7]);
push(@bboxes, \@rect);
Expand Down

0 comments on commit dbee68a

Please sign in to comment.