plcopen/plcopen.py
changeset 1318 758801f4b296
parent 1313 85c167bfff93
child 1322 0a9227f743b3
--- a/plcopen/plcopen.py	Fri Sep 13 17:26:47 2013 +0200
+++ b/plcopen/plcopen.py	Wed Sep 18 15:26:33 2013 +0200
@@ -1625,7 +1625,7 @@
     
     def removecontentInstance(self, local_id):
         if self.content.getLocalTag() in ["LD","FBD","SFC"]:
-            instance = instance_by_id_xpath(self.content)
+            instance = instance_by_id_xpath(self.content, localId=local_id)
             if len(instance) > 0:
                 self.content.remove(instance[0])
             else: