SFC_Divergence SetSize limited
authorlbessard
Wed, 16 Apr 2008 09:42:11 +0200
changeset 199 85d721b33574
parent 198 4768050433b8
child 200 8a1ed1959c69
SFC_Divergence SetSize limited
SFC_Transition drawing fixed
graphics/SFC_Objects.py
--- a/graphics/SFC_Objects.py	Thu Apr 10 19:25:24 2008 +0200
+++ b/graphics/SFC_Objects.py	Wed Apr 16 09:42:11 2008 +0200
@@ -821,7 +821,7 @@
                          self.Size[0] + 1,
                          SFC_TRANSITION_SIZE[1] + 1)
         vertical_line_x = self.Input.GetPosition()[0]
-        dc.DrawLine(vertical_line_x, self.Pos.y, vertical_line_x, self.Pos.y + self.Size[1]) 
+        dc.DrawLine(vertical_line_x, self.Pos.y, vertical_line_x, self.Pos.y + self.Size[1] + 1) 
         # Draw transition condition
         if self.Type != "connection":
             text_width, text_height = self.ConditionSize
@@ -1054,6 +1054,7 @@
     
     # Changes the divergence size
     def SetSize(self, width, height):
+        height = self.GetMinSize()[1]
         for i, input in enumerate(self.Inputs):
             position = input.GetRelPosition()
             if self.RealConnectors: