Coverity fixed: #1350943 06/19206/3
Nikhil Goel [Tue, 21 Mar 2017 06:27:14 +0000 (11:27 +0530)]
Change-Id: Ib3a35bf1cef45cf420d3613988011ce6a363fb68

scilab/modules/gui/src/java/org/scilab/modules/gui/bridge/fontchooser/SwingScilabFontChooser.java

index b375242..7f2f246 100644 (file)
@@ -412,7 +412,7 @@ public class SwingScilabFontChooser extends JDialog implements SimpleFontChooser
             /* Display only SciNotes compatibles fonts which are monospaced */
             for (int fontIndex = 0; fontIndex < availableFontNames.length; fontIndex++) {
                 if (ScilabFontUtils.isMonospaced(new Font(availableFontNames[fontIndex], Font.PLAIN, DEFAULT_FONT_SIZE))
-                        & ScilabFontUtils.isAllStylesSameWidths(availableFontNames[fontIndex])) {
+                        && ScilabFontUtils.isAllStylesSameWidths(availableFontNames[fontIndex])) {
                     ((DefaultListModel) fontNameList.getModel()).addElement(availableFontNames[fontIndex]);
                 }
             }