beremiz
Clone
Summary
Browse
Changes
Graph
Fixed bug when removing block
2013-09-18, Laurent Bessard
758801f4b296
Parents
177d7cd76a3e
Children
748347102c97
Fixed bug when removing block
1 files changed, 1 insertions(+), 1 deletions(-)
+1
-1
plcopen/plcopen.py
--- 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: