summaryrefslogtreecommitdiffstats
path: root/src/element
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2006-09-24 10:11:12 +0000
committerKore Nordmann <github@kore-nordmann.de>2006-09-24 10:11:12 +0000
commit7f2e4d468f356fa62ce3377143747b00ad8cd409 (patch)
tree62d355113784ad35a49d1e77ce67af3148037293 /src/element
parenteac6feb77d1f0ab2e903bb0ab218304c0274464c (diff)
downloadzetacomponents-graph-7f2e4d468f356fa62ce3377143747b00ad8cd409.zip
zetacomponents-graph-7f2e4d468f356fa62ce3377143747b00ad8cd409.tar.gz
- Use ezcGraphColor::create for all color properties
Diffstat (limited to 'src/element')
-rw-r--r--src/element/axis.php18
1 files changed, 2 insertions, 16 deletions
diff --git a/src/element/axis.php b/src/element/axis.php
index 3c600cd..b554464 100644
--- a/src/element/axis.php
+++ b/src/element/axis.php
@@ -111,24 +111,10 @@ abstract class ezcGraphChartElementAxis extends ezcGraphChartElement
$this->properties['axisSpace'] = min( 1, max( 0, (float) $propertyValue ) );
break;
case 'majorGrid':
- if ( $propertyValue instanceof ezcGraphColor )
- {
- $this->properties['majorGrid'] = $propertyValue;
- }
- else
- {
- $this->properties['majorGrid'] = ezcGraphColor::create( $propertyValue );
- }
+ $this->properties['majorGrid'] = ezcGraphColor::create( $propertyValue );
break;
case 'minorGrid':
- if ( $propertyValue instanceof ezcGraphColor )
- {
- $this->properties['minorGrid'] = $propertyValue;
- }
- else
- {
- $this->properties['minorGrid'] = ezcGraphColor::create( $propertyValue );
- }
+ $this->properties['minorGrid'] = ezcGraphColor::create( $propertyValue );
break;
case 'majorStep':
if ( $propertyValue <= 0 )
OpenPOWER on IntegriCloud