diff options
author | Kore Nordmann <github@kore-nordmann.de> | 2009-03-25 12:20:34 +0000 |
---|---|---|
committer | Kore Nordmann <github@kore-nordmann.de> | 2009-03-25 12:20:34 +0000 |
commit | a8d8d0ea093567c17a0dad8cc0a0e2e1b246d752 (patch) | |
tree | fa8f053bb03f4fcec2927e24ccd902a57231d94e /src/driver | |
parent | 04b1e75ef1940831624f318a8a614f81366840ae (diff) | |
download | zetacomponents-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/driver')
-rw-r--r-- | src/driver/gd.php | 5 |
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. |