Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 80c96ef

Browse files
authored
Merge pull request #28524 from meeseeksmachine/auto-backport-of-pr-28523-on-v3.9.x
Backport PR #28523 on branch v3.9.x (Fix value error when set widget size to zero while using FiCureCanvasQT )
2 parents 5bd9252 + b7afb01 commit 80c96ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/backends/backend_qt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ def _draw_idle(self):
492492
if not self._draw_pending:
493493
return
494494
self._draw_pending = False
495-
if self.height() < 0 or self.width() < 0:
495+
if self.height() <= 0 or self.width() <= 0:
496496
return
497497
try:
498498
self.draw()

0 commit comments

Comments
 (0)