# HG changeset patch # User Andrey Skvortsov # Date 1461343750 -10800 # Node ID 62eb21aab1fbf484f3f79640644fe961dfe902b6 # Parent d917c209529d9762f7223b78d6d9e66af3e14b76 fix display of ARRAY fields inside of structure data types. Previously ARRAY fields in structures were displayed, for example, like 'ARRAY [1..2] OF ARRAY' instead of 'ARRAY [1..2] OF INT'. Because of this error the array type can be really edited. diff -r d917c209529d -r 62eb21aab1fb PLCControler.py --- a/PLCControler.py Fri Apr 22 17:02:18 2016 +0300 +++ b/PLCControler.py Fri Apr 22 19:49:10 2016 +0300 @@ -1962,7 +1962,7 @@ for dimension in element_type.getdimension(): dimensions.append((dimension.getlower(), dimension.getupper())) base_type = element_type.baseType.getcontent() - base_type_type = element_type.getLocalTag() + base_type_type = base_type.getLocalTag() element_infos["Type"] = ("array", base_type.getname() if base_type_type == "derived"