summaryrefslogtreecommitdiffstats
path: root/src/datasets
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2006-09-18 08:54:16 +0000
committerKore Nordmann <github@kore-nordmann.de>2006-09-18 08:54:16 +0000
commit3cf31a8d922b0498dbdad20a682f01cdacd33e93 (patch)
treee169d24d64b1276d944bcc248146ad735d3e4165 /src/datasets
parent50d17a17ed5c69d202b0d5ffc6bd1270cb489972 (diff)
downloadzetacomponents-graph-3cf31a8d922b0498dbdad20a682f01cdacd33e93.zip
zetacomponents-graph-3cf31a8d922b0498dbdad20a682f01cdacd33e93.tar.gz
- Fixed endless loop on string keys for datasets with average dataset
- Added average dataset tests to test suite - Updated testfile because of SVG driver modifications
Diffstat (limited to 'src/datasets')
-rw-r--r--src/datasets/average.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/datasets/average.php b/src/datasets/average.php
index d76b7f8..ade2e49 100644
--- a/src/datasets/average.php
+++ b/src/datasets/average.php
@@ -240,6 +240,11 @@ class ezcGraphDataSetAveragePolynom extends ezcGraphDataSet
*/
final public function next()
{
+ if ( $this->min === $this->max )
+ {
+ throw new ezcGraphDatasetAverageInvalidKeysException();
+ }
+
if ( ++$this->position >= $this->resolution )
{
return false;
OpenPOWER on IntegriCloud