Skip to content

Commit 6b800b8

Browse files
authored
Merge pull request #30487 from meeseeksmachine/auto-backport-of-pr-30484-on-v3.10.x
Backport PR #30484 on branch v3.10.x (FIX: be more cautious about checking widget size)
2 parents e3007b2 + a55b817 commit 6b800b8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/matplotlib/backends/backend_qt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ def _draw_idle(self):
517517
if not self._draw_pending:
518518
return
519519
self._draw_pending = False
520-
if self.height() <= 0 or self.width() <= 0:
520+
if _isdeleted(self) or self.height() <= 0 or self.width() <= 0:
521521
return
522522
try:
523523
self.draw()

requirements/testing/all.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ coverage!=6.3
66
psutil
77
pytest!=4.6.0,!=5.4.0,!=8.1.0
88
pytest-cov
9-
pytest-rerunfailures
9+
pytest-rerunfailures!=16.0
1010
pytest-timeout
1111
pytest-xdist
1212
pytest-xvfb

0 commit comments

Comments
 (0)