Skip to content

Commit

Permalink
Python: fix typo in PythonQt changes for Matplotlib.
Browse files Browse the repository at this point in the history
  • Loading branch information
dbrnz committed Oct 23, 2019
1 parent 0e56367 commit a8075e9
Showing 1 changed file with 2 additions and 2 deletions.
@@ -1,5 +1,5 @@
diff --git lib/matplotlib/backends/backend_qt5.py lib/matplotlib/backends/backend_qt5.py
index b4562db7f..74f48b0d7 100644
index b4562db7f..77caced86 100644
--- lib/matplotlib/backends/backend_qt5.py
+++ lib/matplotlib/backends/backend_qt5.py
@@ -17,7 +17,7 @@ from matplotlib.backends.qt_editor.formsubplottool import UiSubplotTool
Expand All @@ -16,7 +16,7 @@ index b4562db7f..74f48b0d7 100644
if qApp is None:
app = QtWidgets.QApplication.instance()
- if app is None:
+ if is_pyqt5 and app is None:
+ if is_pyqt5() and app is None:
# check for DISPLAY env variable on X11 build of Qt
- if is_pyqt5():
+ if is_qt5():
Expand Down

0 comments on commit a8075e9

Please sign in to comment.