summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2007-04-10 14:35:03 +0000
committerKore Nordmann <github@kore-nordmann.de>2007-04-10 14:35:03 +0000
commitcd7bb19d7881216a0faf754da1446073bbf57ffa (patch)
tree90f081a20e1a7ec815e1c4afc3d3fa92d48b7ea2 /src
parent0dcf1d4740bcb7d7f36f3c13643dee0524a7cb44 (diff)
downloadzetacomponents-graph-cd7bb19d7881216a0faf754da1446073bbf57ffa.zip
zetacomponents-graph-cd7bb19d7881216a0faf754da1446073bbf57ffa.tar.gz
- Fixed issue #10536: Bar side polygones are drawn at the wrong side.
Diffstat (limited to 'src')
-rw-r--r--src/renderer/3d.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/renderer/3d.php b/src/renderer/3d.php
index 4e8ba39..6b8bdf6 100644
--- a/src/renderer/3d.php
+++ b/src/renderer/3d.php
@@ -764,6 +764,11 @@ class ezcGraphRenderer3d extends ezcGraphRenderer
$barWidth = ( $stepSize - $margin ) / $dataCount - $padding;
$offset = - $stepSize / 2 + $margin / 2 + ( $dataCount - $dataNumber - 1 ) * ( $padding + $barWidth ) + $padding / 2;
+ if ( $barWidth < 0 )
+ {
+ $offset -= $barWidth = abs( $barWidth );
+ }
+
$startDepth = $this->options->barMargin;
$midDepth = .5;
$endDepth = 1 - $this->options->barMargin;
OpenPOWER on IntegriCloud