From 7d061da0f9189dd20cf7312a324a918ab3908ce4 Mon Sep 17 00:00:00 2001 From: Martin Kamerbeek Date: Tue, 9 May 2006 16:05:58 +0000 Subject: [PATCH] Fixed a bug where the tilt angle 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 60cd2fa52..c7d9e327d 100644 --- a/lib/WebGUI/Image/Graph/Pie.pm +++ b/lib/WebGUI/Image/Graph/Pie.pm @@ -1013,7 +1013,8 @@ sub getTiltAngle { my $self = shift; my $angle = shift; - return $self->{_pieProperties}->{tiltAngle} || 55; + return 55 unless (defined $self->{_pieProperties}->{tiltAngle}); + return $self->{_pieProperties}->{tiltAngle}; } #-------------------------------------------------------------------