From 8f31764af4629f2fade1db636f1ece40f96872b1 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sat, 11 Feb 2006 02:44:48 +0000 Subject: [PATCH] $lastdeg needs to be cumulative --- graph_pie.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graph_pie.php b/graph_pie.php index 1103204..df4b410 100644 --- a/graph_pie.php +++ b/graph_pie.php @@ -149,7 +149,7 @@ class Graph_Pie $deg = (360 / 100) * $plot[1]; imagefilledarc($this->image, $center['x'], $center['y'], $diameter, $diameter, $lastdeg, $deg + $lastdeg, $plot[2], IMG_ARC_PIE); //imagefilledarc($this->image, $center['x'], $center['y'], $diameter, $diameter, $lastdeg, $deg + $lastdeg, $colours['black'], IMG_ARC_EDGED | IMG_ARC_NOFILL); - $lastdeg = $deg; + $lastdeg += $deg; if ($this->legend) { -- 2.43.5