Fixed bug in support for speed up loading graphic viewers
authorLaurent Bessard
Thu, 06 Jun 2013 23:45:39 +0200
changeset 1234 9623d591efb9
parent 1233 5e6d0969bb5d
child 1235 1a30c70fa025
Fixed bug in support for speed up loading graphic viewers
plcopen/plcopen.py
--- a/plcopen/plcopen.py	Thu Jun 06 23:01:15 2013 +0200
+++ b/plcopen/plcopen.py	Thu Jun 06 23:45:39 2013 +0200
@@ -1884,7 +1884,7 @@
     
     def removecontentInstance(self, id):
         if self.content["name"] in ["LD","FBD","SFC"]:
-            element = self.instances_dict.get(id, None)
+            element = self.instances_dict.pop(id, None)
             if element is not None:
                 self.content["value"].getcontent().remove(element)
             else: