diff options
-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' ); |