Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 9192d57

Browse filesBrowse files
committed
Fixes #1630. When callbacks were deleted, the cid map was not correctly updated.
1 parent 6a12658 commit 9192d57
Copy full SHA for 9192d57

File tree

Expand file treeCollapse file tree

1 file changed

+4
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-3
lines changed

‎lib/matplotlib/cbook.py

Copy file name to clipboardExpand all lines: lib/matplotlib/cbook.py
+4-3Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -323,9 +323,10 @@ def disconnect(self, cid):
323323
except KeyError:
324324
continue
325325
else:
326-
for key, value in self._func_cid_map.items():
327-
if value == cid:
328-
del self._func_cid_map[key]
326+
for category, functions in self._func_cid_map.items():
327+
for function, value in functions.items():
328+
if value == cid:
329+
del functions[function]
329330
return
330331

331332
def process(self, s, *args, **kwargs):

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.