--- a/SFCViewer.py Wed Jul 18 11:57:36 2007 +0200
+++ b/SFCViewer.py Wed Jul 18 16:22:39 2007 +0200
@@ -853,7 +853,7 @@
wire.Clean()
self.RemoveWire(wire)
transition.Clean()
- self.AddBlock(transition)
+ self.RemoveBlock(transition)
self.Controler.RemoveCurrentElementEditingInstance(transition.GetId())
previous_block.RemoveBranch(previous)
if previous_block.GetBranchNumber() < 2:
@@ -917,7 +917,7 @@
else:
self.DeleteDivergence(previous_block)
divergence.Clean()
- self.AddBlocks(divergence)
+ self.RemoveBlock(divergence)
self.Controler.RemoveCurrentElementEditingInstance(divergence.GetId())
if next:
wire = self.ConnectConnectors(next, previous)
@@ -949,7 +949,7 @@
wire.Clean()
self.RemoveWire(wire)
divergence.Clean()
- self.AddBlock(divergence)
+ self.RemoveBlock(divergence)
self.Controler.RemoveCurrentElementEditingInstance(divergence.GetId())
wire = self.ConnectConnectors(next, previous)
previous_pos = previous.GetPosition(False)
@@ -983,7 +983,7 @@
wire.Clean()
self.RemoveWire(wire)
jump.Clean()
- self.AddBlocks(jump)
+ self.RemoveBlock(jump)
self.Controler.RemoveCurrentElementEditingInstance(jump.GetId())
if isinstance(previous_block, SFC_Step):
previous_block.RemoveOutput()
@@ -1012,7 +1012,7 @@
wire.Clean()
self.RemoveWire(wire)
actionblock.Clean()
- self.AddBlock(actionblock)
+ self.RemoveBlock(actionblock)
self.Controler.RemoveCurrentElementEditingInstance(actionblock.GetId())
step.RemoveAction()
self.RefreshStepModel(step)