QScintilla/MiniEditor.py

branch
Py2 comp.
changeset 3142
55030c09e142
parent 3080
6c0a430b19df
parent 3087
fdbce259929f
child 3145
a9de05d4a22f
--- a/QScintilla/MiniEditor.py	Fri Dec 13 22:45:47 2013 +0100
+++ b/QScintilla/MiniEditor.py	Fri Dec 13 23:39:14 2013 +0100
@@ -2462,8 +2462,9 @@
         @param on flag to indicate usage of a monospace font (boolean)
         """
         if on:
-            f = Preferences.getEditorOtherFonts("MonospacedFont")
-            self.__textEdit.monospacedStyles(f)
+            if not self.lexer_:
+                f = Preferences.getEditorOtherFonts("MonospacedFont")
+                self.__textEdit.monospacedStyles(f)
         else:
             if not self.lexer_:
                 self.__textEdit.clearStyles()

eric ide

mercurial