plcopen/plcopen.py
changeset 1 e9d01d824086
parent 0 b622defdfd98
child 2 93bc4c2cf376
--- a/plcopen/plcopen.py	Wed Jan 31 16:31:39 2007 +0100
+++ b/plcopen/plcopen.py	Thu Feb 01 18:09:34 2007 +0100
@@ -1498,10 +1498,10 @@
                 else:
                     action.addInline()
                     action.setInlineContent(params["value"])
-                if params["indicator"] != "":
-                    action.setIndicator(params["indicator"])
                 if "duration" in params:
                     action.setDuration(params["duration"])
+                if "indicator" in params:
+                    action.setIndicator(params["indicator"])
                 self.action.append(action)
         setattr(cls, "setActions", setActions)
 
@@ -1522,8 +1522,6 @@
                 indicator = action.getIndicator()
                 if indicator:
                     params["indicator"] = indicator
-                else:
-                    params["indicator"] = ""
                 actions.append(params)
             return actions
         setattr(cls, "getActions", getActions)