8000 backend_macosx: cast set_rubberband's arguments to int as required · radford/matplotlib@76e920a · GitHub
[go: up one dir, main page]

Skip to content

Commit 76e920a

Browse files
committed
backend_macosx: cast set_rubberband's arguments to int as required
1 parent f00ee56 commit 76e920a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/backends/backend_macosx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ def _init_toolbar(self):
453453
_macosx.NavigationToolbar2.__init__(self, basedir)
454454

455455
def draw_rubberband(self, event, x0, y0, x1, y1):
456-
self.canvas.set_rubberband(x0, y0, x1, y1)
456+
4942 self.canvas.set_rubberband(int(x0), int(y0), int(x1), int(y1))
457457

458458
def release(self, event):
459459
self.canvas.remove_rubberband()

0 commit comments

Comments
 (0)
0