Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix draw.lines() with all lines clipped #6

Merged
merged 1 commit into from
Mar 13, 2015

Conversation

jcupitt
Copy link
Contributor

@jcupitt jcupitt commented Mar 12, 2015

If the set of lines given to draw.lines() are all outside the surface,
it will pass _make_drawn_rect() an empty array and trigger an
exception.

This patch makes it return None instead in this case. See
_clip_and_draw_line_width() for similar code.

If the set of lines given to draw.lines() are all outside the surface,
it will pass _make_drawn_rect() an empty array and trigger an
exception.

This patch makes it return None instead in this case. See
_clip_and_draw_line_width() for similar code.
fijal added a commit that referenced this pull request Mar 13, 2015
fix draw.lines() with all lines clipped
@fijal fijal merged commit cdd9c5b into CTPUG:master Mar 13, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants