Skip to content

Commit b7afb01

Browse files
ksundenmeeseeksmachine
authored andcommitted
Backport PR #28523: Fix value error when set widget size to zero while using FiCureCanvasQT
1 parent 5bd9252 commit b7afb01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/backends/backend_qt.py

+1-1
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)