# HG changeset patch # User lbessard # Date 1204036339 -3600 # Node ID 198f7949f73750ead594bead41f3bf4cc77d7b29 # Parent e3d47b4bbd5da7751e45ee9a078838018e52e164 Bug on refresh transition connection fixed diff -r e3d47b4bbd5d -r 198f7949f737 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