diff options
author | Kore Nordmann <github@kore-nordmann.de> | 2007-05-02 13:21:55 +0000 |
---|---|---|
committer | Kore Nordmann <github@kore-nordmann.de> | 2007-05-02 13:21:55 +0000 |
commit | 96d032a0bed22a028d6e2e3510e95ad5de634ab5 (patch) | |
tree | 034c8be785af324fb0685fcfa10566e8bd5aff82 /src/element | |
parent | ad12ebb93d05c9180e289dda8e0d3ff843450f58 (diff) | |
download | zetacomponents-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.php | 3 |
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 ) |