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

Skip to content

Commit b510f19

Browse files
committed
Fix typo
1 parent f3c54a0 commit b510f19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/backends/backend_qt5agg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def paintEvent(self, e):
6969
# As described in __init__ above, we need to be careful in cases with
7070
# mixed resolution displays if dpi_ratio is changing between painting
7171
# events.
72-
if self._dpi_ratio_prev or self._dpi_ratio != self._dpi_ratio_prev:
72+
if self._dpi_ratio_prev is None or self._dpi_ratio != self._dpi_ratio_prev:
7373
# We need to update the figure DPI
7474
self._update_figure_dpi()
7575
# The easiest way to resize the canvas is to emit a resizeEvent

0 commit comments

Comments
 (0)