diff -r bcc07ff2362c -r d5df428640ff graphics/GraphicCommons.py --- a/graphics/GraphicCommons.py Thu Aug 17 14:27:06 2017 +0300 +++ b/graphics/GraphicCommons.py Thu Aug 17 15:43:25 2017 +0300 @@ -1089,9 +1089,9 @@ if self.ValueSize is not None: width, height = self.ValueSize rect = rect.Union(wx.Rect( - parent_pos[0] + self.Pos.x + CONNECTOR_SIZE * self.Direction[0] + \ + parent_pos[0] + self.Pos.x + CONNECTOR_SIZE * self.Direction[0] + width * (self.Direction[0] - 1) / 2, - parent_pos[1] + self.Pos.y + CONNECTOR_SIZE * self.Direction[1] + \ + parent_pos[1] + self.Pos.y + CONNECTOR_SIZE * self.Direction[1] + height * (self.Direction[1] - 1), width, height)) return rect @@ -1548,9 +1548,9 @@ if self.ValueSize is not None: width, height = self.ValueSize dc.DrawText(self.ComputedValue, - parent_pos[0] + self.Pos.x + CONNECTOR_SIZE * self.Direction[0] + \ + parent_pos[0] + self.Pos.x + CONNECTOR_SIZE * self.Direction[0] + width * (self.Direction[0] - 1) / 2, - parent_pos[1] + self.Pos.y + CONNECTOR_SIZE * self.Direction[1] + \ + parent_pos[1] + self.Pos.y + CONNECTOR_SIZE * self.Direction[1] + height * (self.Direction[1] - 1)) dc.SetFont(self.ParentBlock.Parent.GetFont()) dc.SetTextForeground(wx.BLACK)