Bug 5478 fixed: Scilab could not be started with a non readable/writeable SCIHOME
[scilab.git] / scilab / modules / scinotes / src / java / org / scilab / modules / scinotes / SciNotesLineNumberPanel.java
index 4dc46e0..1fc22a7 100644 (file)
@@ -90,11 +90,10 @@ public class SciNotesLineNumberPanel extends JPanel implements CaretListener, Do
         this.textPane = textPane;
         this.doc = (ScilabDocument) textPane.getDocument();
         setOpaque(true);
-        setFont(textPane.getFont());
+        updateFont(textPane.getFont());
         setBorderGap(PANELGAPSIZE);
         setCurrentLineForeground(Color.RED);
         setAlternColors(ConfigSciNotesManager.getAlternColors());
-        updateFont(ConfigSciNotesManager.getFont());
         textPane.addCaretListener(this);
         addMouseMotionListener(this);
     }