mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-12-15 17:20:07 +01:00
casting drawrectangle arguments to int as required
This commit is contained in:
@@ -971,8 +971,8 @@ class LineShape(Shape):
|
||||
# Drawing over the line only seems to work if the line has a thickness
|
||||
# of 1.
|
||||
if old_pen and old_pen.GetWidth() > 1:
|
||||
dc.DrawRectangle(self._xpos - bound_x / 2.0 - 2, self._ypos - bound_y / 2.0 - 2,
|
||||
bound_x + 4, bound_y + 4)
|
||||
dc.DrawRectangle(int(self._xpos - bound_x / 2.0 - 2), int(self._ypos - bound_y / 2.0 - 2),
|
||||
int(bound_x + 4), int(bound_y + 4))
|
||||
else:
|
||||
self._erasing = True
|
||||
self.GetEventHandler().OnDraw(dc)
|
||||
|
||||
Reference in New Issue
Block a user