summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2009-03-25 12:20:34 +0000
committerKore Nordmann <github@kore-nordmann.de>2009-03-25 12:20:34 +0000
commita8d8d0ea093567c17a0dad8cc0a0e2e1b246d752 (patch)
treefa8f053bb03f4fcec2927e24ccd902a57231d94e /src
parent04b1e75ef1940831624f318a8a614f81366840ae (diff)
downloadzetacomponents-graph-a8d8d0ea093567c17a0dad8cc0a0e2e1b246d752.zip
zetacomponents-graph-a8d8d0ea093567c17a0dad8cc0a0e2e1b246d752.tar.gz
- Fixed #14655: A full circle sector is not drawn at all in GD driver.
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