8000 Don't call setDevicePixelRatio after setDevicePixelRatioF. · matplotlib/matplotlib@007c05d · GitHub
[go: up one dir, main page]

Skip to content

Commit 007c05d

Browse files
committed
Don't call setDevicePixelRatio after setDevicePixelRatioF.
1 parent 77f23da commit 007c05d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/backends/qt_compat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,6 @@ def _setDevicePixelRatioF(obj, val):
220220
if hasattr(obj, 'setDevicePixelRatioF'):
221221
# Not available on Qt<5.6
222222
obj.setDevicePixelRatioF(val)
223-
if hasattr(obj, 'setDevicePixelRatio'):
223+
elif hasattr(obj, 'setDevicePixelRatio'):
224224
# Not available on Qt4 or some older Qt5.
225225
obj.setDevicePixelRatio(val)

0 commit comments

Comments
 (0)
0