8000 Merge pull request #15208 from tacaswell/auto-backport-of-pr-15206-on… · matplotlib/matplotlib@50407d0 · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit 50407d0

Browse files
authored
Merge pull request #15208 from tacaswell/auto-backport-of-pr-15206-on-v2.2.x
Backport PR #15206: FIX: be more forgiving about expecting internal s…
2 parents 3479f5b + 04a2d11 commit 50407d0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/matplotlib/backends/backend_qt5.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,8 @@ def draw_idle(self):
506506
# current event loop in order to ensure thread affinity and to
507507
# accumulate multiple draw requests from event handling.
508508
# TODO: queued signal connection might be safer than singleShot
509-
if not (self._draw_pending or self._is_drawing):
509+
if not (getattr(self, '_draw_pending', False) or
510+
getattr(self, '._is_drawing', False)):
510511
self._draw_pending = True
511512
QtCore.QTimer.singleShot(0, self._draw_idle)
512513

0 commit comments

Comments
 (0)
0