Merge pull request #2284 from pchemguy/lib-agw-aui-dockart

Changed float division to integer division in lib-agw-aui-dockart.py
This commit is contained in:
Robin Dunn
2022-10-18 17:30:56 -07:00
committed by GitHub

View File

@@ -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)