From b6cbd68529ac9478663e59531e9d82f1f5b613a7 Mon Sep 17 00:00:00 2001 From: Martin Kamerbeek Date: Tue, 9 May 2006 16:10:38 +0000 Subject: [PATCH] Fixed a bug where the pie height could not be set to 0 --- lib/WebGUI/Image/Graph/Pie.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/WebGUI/Image/Graph/Pie.pm b/lib/WebGUI/Image/Graph/Pie.pm index c7d9e327d..ebf8b2ab6 100644 --- a/lib/WebGUI/Image/Graph/Pie.pm +++ b/lib/WebGUI/Image/Graph/Pie.pm @@ -1027,7 +1027,8 @@ Returns the thickness of the top of the pie in pixels. Defaults to 20 pixels. sub getTopHeight { my $self = shift; - return $self->{_pieProperties}->{topHeight} || 20; + return 20 unless (defined $self->{_pieProperties}->{topHeight}); + return $self->{_pieProperties}->{topHeight}; } #-------------------------------------------------------------------