Skip to content

Commit 9aeb3bd

Browse files
Use integer division in DockSplitter.draw (#1190)
Co-authored-by: Corran Webster <[email protected]>
1 parent acccc5e commit 9aeb3bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pyface/dock/dock_sizer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1314,7 +1314,7 @@ def draw(self, dc):
13141314
# should be a darkish color in the users color scheme
13151315
pen = wx.Pen(wx.SystemSettings.GetColour(wx.SYS_COLOUR_BTNSHADOW))
13161316
dc.SetPen(pen)
1317-
dc.DrawLine(x + idx + 1, y + dy / 2, x + dx - 2, y + dy / 2)
1317+
dc.DrawLine(x + idx + 1, y + dy // 2, x + dx - 2, y + dy // 2)
13181318

13191319
iy = y + 2
13201320
ix = x
@@ -1327,7 +1327,7 @@ def draw(self, dc):
13271327
# should be a darkish color in the users color scheme
13281328
pen = wx.Pen(wx.SystemSettings.GetColour(wx.SYS_COLOUR_BTNSHADOW))
13291329
dc.SetPen(pen)
1330-
dc.DrawLine(x + dx / 2, y + idy + 1, x + dx / 2, y + dy - 2)
1330+
dc.DrawLine(x + dx // 2, y + idy + 1, x + dx // 2, y + dy - 2)
13311331

13321332
iy = y
13331333
ix = x + 2

0 commit comments

Comments
 (0)