From a03f4824941570f4bd7ecf59d2ce2283a0015d09 Mon Sep 17 00:00:00 2001
From: "mathias.chouet" <mathias.chouet@irstea.fr>
Date: Wed, 4 Sep 2019 10:35:17 +0200
Subject: [PATCH] Fix nghyd#275 - wrong aprons order in MacrorugoCompound

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

diff --git a/src/macrorugo/macrorugo_compound.ts b/src/macrorugo/macrorugo_compound.ts
index d2f7c882..35dd6038 100644
--- a/src/macrorugo/macrorugo_compound.ts
+++ b/src/macrorugo/macrorugo_compound.ts
@@ -63,7 +63,7 @@ export class MacrorugoCompound extends MacroRugo implements Observer {
     }
 
     public addChild(child: MacroRugo, after?: number) {
-        super.addChild(child);
+        super.addChild(child, after);
         for (const p of child.parameterIterator) {
             p.visible = false;
         }
-- 
GitLab