Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixes #1630. When callbacks were deleted, the cid map was not correct…

…ly updated.
  • Loading branch information...
commit 9192d577409b6a2c76e0aac7ba8fc1ca143d2fff 1 parent 6a12658
@mdboom mdboom authored
Showing with 4 additions and 3 deletions.
  1. +4 −3 lib/matplotlib/cbook.py
View
7 lib/matplotlib/cbook.py
@@ -323,9 +323,10 @@ def disconnect(self, cid):
except KeyError:
continue
else:
- for key, value in self._func_cid_map.items():
- if value == cid:
- del self._func_cid_map[key]
+ for category, functions in self._func_cid_map.items():
+ for function, value in functions.items():
+ if value == cid:
+ del functions[function]
return
def process(self, s, *args, **kwargs):
Please sign in to comment.
Something went wrong with that request. Please try again.