Graphics::Magick is now the standard graphics package in WebGUI, but

Image::Magick will be supported for backwards compatibility. See gotcha.txt
   for details.
This commit is contained in:
JT Smith 2007-07-26 03:23:47 +00:00
parent 168ba28ccf
commit bde1a7a941
6 changed files with 55 additions and 10 deletions

View file

@ -1118,8 +1118,8 @@ sub processDataset {
}
my $dataIndex = 0;
my $stepsize = ($self->getTopHeight + $self->getBottomHeight) / scalar(@{$self->getDataset});
my $divisor = scalar(@{$self->getDataset}) || 1; # avoid division by zero
my $stepsize = ($self->getTopHeight + $self->getBottomHeight) / $divisor;
foreach (@{$self->getDataset}) {
$self->addSlice({
percentage => $_ / $total,