From 772e95789222c2d6ca8afc23ce467b947f69054e Mon Sep 17 00:00:00 2001
From: "francois.grand" <francois.grand@irstea.fr>
Date: Thu, 18 Jan 2018 15:33:57 +0100
Subject: [PATCH] closes #56

---
 src/section/section_type.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/section/section_type.ts b/src/section/section_type.ts
index 5a6a944f..25b540ed 100644
--- a/src/section/section_type.ts
+++ b/src/section/section_type.ts
@@ -21,7 +21,7 @@ export abstract class cParamsCanal extends ParamsEquation {
                 super();
                 this._Ks = new ParamDefinition(nodeType, 'Ks', ParamDomainValue.POS, rKs);
                 this._Q = new ParamDefinition(nodeType, 'Q', ParamDomainValue.POS_NULL, rQ);
-                this._If = new ParamDefinition(nodeType, 'If', ParamDomainValue.ANY, rIf);
+                this._If = new ParamDefinition(nodeType, 'If', ParamDomainValue.POS, rIf);
                 this._Prec = new ParamDefinition(nodeType, 'Prec', ParamDomainValue.POS, rPrec);
                 this._iPrec = new ParamDefinition(nodeType, 'iPrec', ParamDomainValue.ANY, Math.round(-Math.log(rPrec) / Math.log(10)));
                 this._YB = new ParamDefinition(nodeType, 'YB', ParamDomainValue.POS, rYB);
-- 
GitLab