Bug on refresh transition connection fixed
authorlbessard
Tue, 26 Feb 2008 15:32:19 +0100
changeset 172 198f7949f737
parent 171 e3d47b4bbd5d
child 173 3f99b76ecfe7
Bug on refresh transition connection fixed
graphics/SFC_Objects.py
--- 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