From ad5c0e59153ed772f5fc0e566d69ac7f1dbe7a7d Mon Sep 17 00:00:00 2001
From: David Dorchies <david.dorchies@irstea.fr>
Date: Wed, 20 Feb 2019 17:17:13 +0100
Subject: [PATCH] Closes nghyd#85

---
 package-lock.json                 | 2 +-
 src/param/param-value-iterator.ts | 4 +++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/package-lock.json b/package-lock.json
index 96884dc6..7190b3e5 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,6 +1,6 @@
 {
   "name": "jalhyd",
-  "version": "1.0.0",
+  "version": "1.1.0",
   "lockfileVersion": 1,
   "requires": true,
   "dependencies": {
diff --git a/src/param/param-value-iterator.ts b/src/param/param-value-iterator.ts
index 8d59ecd5..9b233c52 100644
--- a/src/param/param-value-iterator.ts
+++ b/src/param/param-value-iterator.ts
@@ -122,7 +122,9 @@ export class ParamValueIterator implements INumberIterator {
 
             // min/max
             case 1:
-                const end = this._reverse ? this._index < this._param.min : this._index > this._param.max;
+                const end = this._reverse ?
+                    this._index < this._param.min - this._param.step * 1E-7 :
+                    this._index > this._param.max + this._param.step * 1E-7;
                 return !end;
 
             // liste
-- 
GitLab