Fix bug Variable and Continuation BoundingBox not refreshed when using Type modification shortcuts
authorLaurent Bessard
Wed, 31 Oct 2012 12:04:40 +0100
changeset 873 8737f1554494
parent 872 6aadbde5f41e
child 874 8b24e9312f18
Fix bug Variable and Continuation BoundingBox not refreshed when using Type modification shortcuts
graphics/FBD_Objects.py
--- a/graphics/FBD_Objects.py	Fri Oct 26 11:14:48 2012 +0200
+++ b/graphics/FBD_Objects.py	Wed Oct 31 12:04:40 2012 +0100
@@ -666,6 +666,7 @@
                 self.Output.UnConnect(delete = True)
                 self.Output = None
             self.RefreshConnectors()
+            self.RefreshBoundingBox()
         elif value_type != self.ValueType:
             if self.Input:
                 self.Input.SetType(value_type)
@@ -904,6 +905,7 @@
             else:
                 self.Connector = Connector(self, "", "ANY", wx.Point(0, 0), EAST)
             self.RefreshConnectors()
+            self.RefreshBoundingBox()
     
     # Returns the connection type
     def GetType(self):