QScintilla/Shell.py

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

eric ide

mercurial