Merge branch 'develop' into features/JAL-2360colourSchemeApplicability
[jalview.git] / src / jalview / appletgui / SliderPanel.java
index 5179eb0..53a2824 100644 (file)
@@ -186,8 +186,8 @@ public class SliderPanel extends Panel implements ActionListener,
     if (PIDSlider != null)
     {
       PIDSlider.setVisible(false);
+      PIDSlider = null;
     }
-    PIDSlider = null;
   }
 
   /**
@@ -198,8 +198,8 @@ public class SliderPanel extends Panel implements ActionListener,
     if (conservationSlider != null)
     {
       conservationSlider.setVisible(false);
+      conservationSlider = null;
     }
-    conservationSlider = null;
   }
   public SliderPanel(AlignmentPanel ap, int value, boolean forConserve,
           ColourSchemeI cs)