From 106d321dd9a32c8f6f7f81e9c7d6f6541587e361 Mon Sep 17 00:00:00 2001 From: Martin Kamerbeek Date: Thu, 27 Aug 2009 16:17:14 +0000 Subject: [PATCH] Fixed Poll: Pie Chart broken (#10830) --- docs/changelog/7.x.x.txt | 1 + lib/WebGUI/Image/Graph/Pie.pm | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index 7502d4855..30fd04cc7 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -11,6 +11,7 @@ - fixed #10814: matrix translations - fixed Survey reporting of simple/transported results to csv/tab - fixed #10797: searching non-ascii-characters (e.g. wiki), part 2 + - fixed #10830: Pie chart broken (Martin Kamerbeek / Oqapi) 7.7.18 - fixed #10801: Payment Methods: can select a blank method diff --git a/lib/WebGUI/Image/Graph/Pie.pm b/lib/WebGUI/Image/Graph/Pie.pm index 91234d5a8..b2bd66259 100644 --- a/lib/WebGUI/Image/Graph/Pie.pm +++ b/lib/WebGUI/Image/Graph/Pie.pm @@ -88,7 +88,7 @@ sub addSlice { # Work around a bug in imagemagick where an A path with the same start and end point will segfault. if ($percentage == 1) { - $percentage = 0.999999999; + $percentage = 0.99999; } my $label = $properties->{label};