mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-06 20:10:08 +01:00
Changed float division to integer division in lib-agw-aui-dockart.py
wx.DC.DrawXXX expect numeric arguments to be integers.
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user