label : fix bad generation of Latex icon 02/14202/2
Antoine ELIAS [Fri, 28 Mar 2014 10:31:19 +0000 (11:31 +0100)]
Change-Id: I326ea6f575533fc039f3a7bae23ec6447c477b4a

scilab/modules/gui/src/java/org/scilab/modules/gui/bridge/label/SwingScilabLabel.java

index 40f6e4e..56f71b3 100644 (file)
@@ -738,7 +738,7 @@ public class SwingScilabLabel extends JScrollPane implements SwingViewObject, Si
         private void update() {
             if (text.equals("") == false) {
                 if (type == IconType.LATEX) {
-                    icon = ScilabSpecialTextUtilities.compileLaTeXExpression(text, (int) fontSize);
+                    icon = new TeXFormula(text).new TeXIconBuilder().setStyle(TeXConstants.STYLE_DISPLAY).setSize(fontSize).build();
                 } else {
                     if (isEnabled()) {
                         icon = ScilabSpecialTextUtilities.compileMathMLExpression(text, (int) fontSize);