SVGHMI: Fix multiple variable support in widget svghmi
authorEdouard Tisserant
Wed, 26 Aug 2020 14:24:43 +0200
branchsvghmi
changeset 3040 acecaeadf20d
parent 3039 5ca37a7b89e2
child 3041 de4503de2f8c
SVGHMI: Fix multiple variable support in widget
svghmi/widgets_common.ysl2
--- a/svghmi/widgets_common.ysl2	Wed Aug 26 11:34:06 2020 +0200
+++ b/svghmi/widgets_common.ysl2	Wed Aug 26 14:24:43 2020 +0200
@@ -183,7 +183,7 @@
         }
 
         apply_hmi_value(index, new_val) {
-            return apply_hmi_value(this.get_variable_index(0), new_val);
+            return apply_hmi_value(this.get_variable_index(index), new_val);
         }
 
         new_hmi_value(index, value, oldval) {