Skip to content

Reorder the code in the draw() method of Line2D to fix issue 4338 #4348

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

Merged
merged 1 commit into from
Apr 17, 2015

Conversation

mdehoon
Copy link
Contributor

@mdehoon mdehoon commented Apr 17, 2015

In this pull request, I reordered the lines in the draw() method of Line2D to first check if funcname != '_draw_nothing' before starting to fill in the graphics context. The first call to new_gc moved to after this check; this fixes the bug described in issue 4338.

@tacaswell
Copy link
Member

@mdehoon Thanks. Looks good to me, I will merge as soon as travis agrees. I will also back-port this to the color_overhaul branch.

tacaswell added a commit that referenced this pull request Apr 17, 2015
FIX : Reorder the code in the draw() method of Line2D 

fixes #4338
@tacaswell tacaswell merged commit 6586369 into matplotlib:master Apr 17, 2015
tacaswell added a commit that referenced this pull request Apr 17, 2015
FIX : Reorder the code in the draw() method of Line2D

fixes #4338
@tacaswell
Copy link
Member

tacaswell commented Apr 17, 2015

Backported as 52baded Thank you.

@mdehoon mdehoon deleted the fixForIssue4338 branch April 18, 2015 02:20
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