Skip to content

Commit

Permalink
specify size_or_ary contains ints (#788)
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronayres35 authored Jun 21, 2021
1 parent de04b3b commit c03d470
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chaco/plot_graphics_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ def __init__(self, size_or_ary, *args, **kw):
scale = kw.pop("dpi", 72.0) / 72.0
if type(size_or_ary) in (list, tuple) and len(size_or_ary) == 2:
size_or_ary = (
size_or_ary[0] * scale + 1,
size_or_ary[1] * scale + 1,
int(size_or_ary[0] * scale + 1),
int(size_or_ary[1] * scale + 1),
)

super().__init__(
Expand Down

0 comments on commit c03d470

Please sign in to comment.