QScintilla/MiniEditor.py

changeset 3087
fdbce259929f
parent 3067
8fd7ae10de2b
child 3142
55030c09e142
child 3160
209a07d7e401
--- a/QScintilla/MiniEditor.py	Sat Nov 16 18:02:43 2013 +0100
+++ b/QScintilla/MiniEditor.py	Sat Nov 16 18:37:27 2013 +0100
@@ -2460,8 +2460,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