summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/driver/gd.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/driver/gd.php b/src/driver/gd.php
index f841f9d..763dda8 100644
--- a/src/driver/gd.php
+++ b/src/driver/gd.php
@@ -739,6 +739,11 @@ class ezcGraphGdDriver extends ezcGraphDriver
$endAngle = $tmp;
}
+ if ( ( $endAngle - $startAngle ) > 359.99999 )
+ {
+ return $this->drawCircle( $center, $width, $height, $color, $filled );
+ }
+
// Because of bug #45552 in PHPs ext/GD we check for a minimal distance
// on the outer border of the circle sector, and skip the drawing if
// the distance is lower then 1.
OpenPOWER on IntegriCloud