beremiz

Parents 086f52b2feac
Children 8b0a7eceb76d
Fixed bug when defining variable type as explicit array in VariablePanel
--- a/controls/VariablePanel.py Thu Dec 05 18:00:15 2013 +0100
+++ b/controls/VariablePanel.py Thu Dec 05 18:08:31 2013 +0100
@@ -623,7 +623,8 @@
return self.TagName
def IsFunctionBlockType(self, name):
- if self.ElementType != "function" and self.BodyType in ["ST", "IL"]:
+ if (isinstance(name, TupleType) or
+ self.ElementType != "function" and self.BodyType in ["ST", "IL"]):
return False
else:
return self.Controler.GetBlockType(name, debug=self.Debug) is not None