Fixed SFC code generation bug detected by Mario
authorEdouard Tisserant
Tue, 24 Feb 2015 11:50:54 +0100
changeset 1450 44bf0ba866e9
parent 1449 5f09fa31d7b0
child 1451 94e620cbd9de
Fixed SFC code generation bug detected by Mario
PLCGenerator.py
--- a/PLCGenerator.py	Sat Feb 21 10:20:24 2015 +0100
+++ b/PLCGenerator.py	Tue Feb 24 11:50:54 2015 +0100
@@ -1480,10 +1480,10 @@
                 self.TagName = self.ParentGenerator.Controler.ComputePouTransitionName(self.Name, transitionValues["value"])
                 if transitionType == "IL":
                     transition_infos["content"] = [(":\n", ()),
-                                                   (ReIndentText(transitionBody.getanyText(), len(self.CurrentIndent)), (self.TagName, "body", len(self.CurrentIndent)))]
+                                                   (ReIndentText(transitionBody.getcontent().getanyText(), len(self.CurrentIndent)), (self.TagName, "body", len(self.CurrentIndent)))]
                 elif transitionType == "ST":
                     transition_infos["content"] = [("\n", ()),
-                                                   (ReIndentText(transitionBody.getanyText(), len(self.CurrentIndent)), (self.TagName, "body", len(self.CurrentIndent)))]
+                                                   (ReIndentText(transitionBody.getcontent().getanyText(), len(self.CurrentIndent)), (self.TagName, "body", len(self.CurrentIndent)))]
                 else:
                     for instance in transitionBody.getcontentInstances():
                         if isinstance(instance, OutVariableClass) and instance.getexpression() == transitionValues["value"]\