summaryrefslogtreecommitdiffstats
path: root/src/element
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2007-05-02 13:21:55 +0000
committerKore Nordmann <github@kore-nordmann.de>2007-05-02 13:21:55 +0000
commit96d032a0bed22a028d6e2e3510e95ad5de634ab5 (patch)
tree034c8be785af324fb0685fcfa10566e8bd5aff82 /src/element
parentad12ebb93d05c9180e289dda8e0d3ff843450f58 (diff)
downloadzetacomponents-graph-96d032a0bed22a028d6e2e3510e95ad5de634ab5.zip
zetacomponents-graph-96d032a0bed22a028d6e2e3510e95ad5de634ab5.tar.gz
- Fixed issue #10693: ezcGraphChartElementAxis::getSteps returns minor steps
after last major steps
Diffstat (limited to 'src/element')
-rw-r--r--src/element/axis.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/element/axis.php b/src/element/axis.php
index 3f3f868..d14431d 100644
--- a/src/element/axis.php
+++ b/src/element/axis.php
@@ -295,7 +295,8 @@ abstract class ezcGraphChartElementAxis extends ezcGraphChartElement
( $major === $majorSteps )
);
- if ( $minorStepsPerMajorStepCount > 0 )
+ if ( ( $minorStepsPerMajorStepCount > 0 ) &&
+ ( $major < $majorSteps ) )
{
// Do not add minor steps at major steps positions
for( $minor = 1; $minor < $minorStepsPerMajorStepCount; ++$minor )
OpenPOWER on IntegriCloud