graphics/SFC_Objects.py
changeset 172 198f7949f737
parent 165 e464a4e4e06d
child 175 cc78572dfbbc
--- a/graphics/SFC_Objects.py	Tue Feb 26 15:16:30 2008 +0100
+++ b/graphics/SFC_Objects.py	Tue Feb 26 15:32:19 2008 +0100
@@ -514,6 +514,8 @@
             transition.SetPosition(pos.x, pos.y)
         transition.Input = self.Input.Clone(transition)
         transition.Output = self.Output.Clone(transition)
+        if self.Type == "connection":
+            transition.Condition = self.Condition.Clone(transition)
         return transition
     
     # Returns the RedrawRect
@@ -526,6 +528,8 @@
                 rect = rect.Union(self.Input.GetConnectedRedrawRect(movex, movey))
             if self.Output.IsConnected():
                 rect = rect.Union(self.Output.GetConnectedRedrawRect(movex, movey))
+            if self.Type == "connection" and self.Connection.IsConnected():
+                rect = rect.Union(self.Condition.GetConnectedRedrawRect(movex, movey))
         return rect
     
     # Forbids to change the transition size