diff options
author | Kore Nordmann <github@kore-nordmann.de> | 2006-09-24 10:04:45 +0000 |
---|---|---|
committer | Kore Nordmann <github@kore-nordmann.de> | 2006-09-24 10:04:45 +0000 |
commit | 10bce6de1d1caaf7b414f4a4b87c3dad666345b7 (patch) | |
tree | 243568d8b5e4c4d0e8b154a1cd4db9c316ef34ff /src/datasets | |
parent | 77a1f4b250264da313df68a24f40f2fcf02d1690 (diff) | |
download | zetacomponents-graph-10bce6de1d1caaf7b414f4a4b87c3dad666345b7.zip zetacomponents-graph-10bce6de1d1caaf7b414f4a4b87c3dad666345b7.tar.gz |
- Ensure proper polygon initialization
Diffstat (limited to 'src/datasets')
-rw-r--r-- | src/datasets/average.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/datasets/average.php b/src/datasets/average.php index 394d282..33dfa71 100644 --- a/src/datasets/average.php +++ b/src/datasets/average.php @@ -200,6 +200,7 @@ class ezcGraphDataSetAveragePolynom extends ezcGraphDataSet */ protected function getKey() { + $polynom = $this->getPolynom(); return $this->min + ( $this->max - $this->min ) / $this->resolution * $this->position; } @@ -213,6 +214,7 @@ class ezcGraphDataSetAveragePolynom extends ezcGraphDataSet */ public function offsetExists( $key ) { + $polynom = $this->getPolynom(); return ( ( $key >= $this->min ) && ( $key <= $this->max ) ); } @@ -310,6 +312,7 @@ class ezcGraphDataSetAveragePolynom extends ezcGraphDataSet */ final public function valid() { + $polynom = $this->getPolynom(); return ( ( $this->getKey() >= $this->min ) && ( $this->getKey() <= $this->max ) ); } |