Editor: fixed an issue introduced during the code cleanup.

Sat, 07 Sep 2019 19:07:41 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 07 Sep 2019 19:07:41 +0200
changeset 7224
18519d376be4
parent 7222
fc6530b432ad
child 7225
aa36a9414d99

Editor: fixed an issue introduced during the code cleanup.

eric6/QScintilla/Editor.py file | annotate | diff | comparison | revisions
--- a/eric6/QScintilla/Editor.py	Sat Sep 07 17:34:29 2019 +0200
+++ b/eric6/QScintilla/Editor.py	Sat Sep 07 19:07:41 2019 +0200
@@ -18,7 +18,8 @@
 from PyQt5.QtWidgets import QLineEdit, QActionGroup, QDialog, QInputDialog, \
     QApplication, QMenu
 from PyQt5.QtPrintSupport import QPrinter, QPrintDialog, QAbstractPrintDialog
-from PyQt5.Qsci import QsciScintilla, QsciMacro, QsciStyledText
+from PyQt5.Qsci import QsciScintilla, QsciMacro, QsciStyledText, \
+    QSCINTILLA_VERSION
 
 from E5Gui.E5Application import e5App
 from E5Gui import E5FileDialog, E5MessageBox
@@ -4403,7 +4404,8 @@
         self.caretWidth = Preferences.getEditor("CaretWidth")
         self.setCaretWidth(self.caretWidth)
         self.caretLineFrameWidth = Preferences.getEditor("CaretLineFrameWidth")
-        self.setCaretLineFrameWidth(self.caretLineFrameWidth)
+        if QSCINTILLA_VERSION() >= 0x020B00:
+            self.setCaretLineFrameWidth(self.caretLineFrameWidth)
         self.useMonospaced = Preferences.getEditor("UseMonospacedFont")
         self.setMonospaced(self.useMonospaced)
         edgeMode = Preferences.getEditor("EdgeMode")

eric ide

mercurial