From 0a2c573c911fec3160590a141cdd30a71303c4cd Mon Sep 17 00:00:00 2001 From: PChemGuy <12279399-PChemGuy@users.noreply.gitlab.com> Date: Thu, 15 Sep 2022 15:08:28 +0300 Subject: [PATCH] Changed float division to integer division in lib-agw-aui-dockart.py wx.DC.DrawXXX expect numeric arguments to be integers. --- wx/lib/agw/aui/dockart.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wx/lib/agw/aui/dockart.py b/wx/lib/agw/aui/dockart.py index 2d6d5879..d3eb4819 100644 --- a/wx/lib/agw/aui/dockart.py +++ b/wx/lib/agw/aui/dockart.py @@ -612,7 +612,7 @@ class AuiDefaultDockArt(object): draw_text = ChopText(dc, text, variable) if captionLeft: - dc.DrawRotatedText(draw_text, rect.x+(rect.width/2)-(h/2)-1, rect.y+rect.height-3-caption_offset, 90) + dc.DrawRotatedText(draw_text, rect.x+(rect.width//2)-(h//2)-1, rect.y+rect.height-3-caption_offset, 90) else: dc.DrawText(draw_text, rect.x+3+caption_offset, rect.y+(rect.height//2)-(h//2)-1)