Coverity fixed: #1350944 05/19205/4
Nikhil Goel [Mon, 20 Mar 2017 21:15:25 +0000 (02:15 +0530)]
Change-Id: If10faa6f9de7ffa747ef1569881e877a2e161b77

scilab/modules/gui/src/java/org/scilab/modules/gui/bridge/listbox/SwingScilabListBox.java

index 575d55d..e62cc01 100644 (file)
@@ -630,7 +630,7 @@ public class SwingScilabListBox extends JScrollPane implements SwingViewObject,
      */
     public void setListBoxTop(int index) {
         getVerticalScrollBar().removeAdjustmentListener(adjustmentListener);
-        if (index > 0 & index != getListBoxTop() && getList().getModel().getSize() != 0) {
+        if (index > 0 && index != getListBoxTop() && getList().getModel().getSize() != 0) {
             getViewport().setViewPosition(getList().getUI().indexToLocation(getList(), index - 1));
             doLayout();
         }