PLCControler.py
changeset 310 ccb47adebe80
parent 307 fd1f6ae26d4f
child 349 96cc6179b918
--- a/PLCControler.py	Fri Feb 13 14:45:19 2009 +0100
+++ b/PLCControler.py	Wed Feb 25 16:04:26 2009 +0100
@@ -1559,7 +1559,7 @@
     # Return edited element transitions
     def GetEditedElementActions(self, tagname, debug = False):
         pou = self.GetEditedElement(tagname, debug)
-        if pou is None and pou.getbodyType() == "SFC":
+        if pou is not None and pou.getbodyType() == "SFC":
             actions = []
             for action in pou.getactionList():
                 actions.append(action.getname())