diff options
author | Kore Nordmann <github@kore-nordmann.de> | 2006-12-15 10:23:06 +0000 |
---|---|---|
committer | Kore Nordmann <github@kore-nordmann.de> | 2006-12-15 10:23:06 +0000 |
commit | 0f0d4def49664b84f9aebc9ac94f4b9ac3a5a8bb (patch) | |
tree | 087544c02969453e03a27336fe54e02de7a888bc | |
parent | 608e7e2984878c368127f41bb722c416e533c646 (diff) | |
download | zetacomponents-graph-0f0d4def49664b84f9aebc9ac94f4b9ac3a5a8bb.zip zetacomponents-graph-0f0d4def49664b84f9aebc9ac94f4b9ac3a5a8bb.tar.gz |
- Fixed majorStep default value to be null
-rw-r--r-- | src/axis/numeric.php | 4 | ||||
-rw-r--r-- | src/element/axis.php | 4 | ||||
-rw-r--r-- | tests/element_options_test.php | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/src/axis/numeric.php b/src/axis/numeric.php index b596774..bff04aa 100644 --- a/src/axis/numeric.php +++ b/src/axis/numeric.php @@ -260,12 +260,12 @@ class ezcGraphChartElementNumericAxis extends ezcGraphChartElementAxis } // Calculate "nice" values for scaling parameters - if ( $this->properties['majorStep'] === false ) + if ( $this->properties['majorStep'] === null ) { $this->calculateMajorStep( $this->properties['minValue'], $this->properties['maxValue'] ); } - if ( $this->properties['minorStep'] === false ) + if ( $this->properties['minorStep'] === null ) { $this->calculateMinorStep( $this->properties['minValue'], $this->properties['maxValue'] ); } diff --git a/src/element/axis.php b/src/element/axis.php index cdcd26c..5677fda 100644 --- a/src/element/axis.php +++ b/src/element/axis.php @@ -60,8 +60,8 @@ abstract class ezcGraphChartElementAxis extends ezcGraphChartElement $this->properties['axisSpace'] = .1; $this->properties['majorGrid'] = false; $this->properties['minorGrid'] = false; - $this->properties['majorStep'] = false; - $this->properties['minorStep'] = false; + $this->properties['majorStep'] = null; + $this->properties['minorStep'] = null; $this->properties['formatString'] = '%s'; $this->properties['label'] = false; $this->properties['labelSize'] = 14; diff --git a/tests/element_options_test.php b/tests/element_options_test.php index 0fc11d5..b73f59d 100644 --- a/tests/element_options_test.php +++ b/tests/element_options_test.php @@ -670,7 +670,7 @@ class ezcGraphElementOptionsTest extends ezcImageTestCase $options = new ezcGraphChartElementNumericAxis(); $this->assertSame( - false, + null, $options->majorStep, 'Wrong default value for property majorStep in class ezcGraphChartElementNumericAxis' ); @@ -699,7 +699,7 @@ class ezcGraphElementOptionsTest extends ezcImageTestCase $options = new ezcGraphChartElementNumericAxis(); $this->assertSame( - false, + null, $options->minorStep, 'Wrong default value for property minorStep in class ezcGraphChartElementNumericAxis' ); |