Merge branch 'features/JAL-2360colourSchemeApplicability' into features/JAL-2371colle...
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Fri, 20 Jan 2017 14:49:29 +0000 (14:49 +0000)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Fri, 20 Jan 2017 14:49:29 +0000 (14:49 +0000)
1  2 
src/jalview/appletgui/SeqPanel.java

@@@ -1505,12 -1505,12 +1505,12 @@@ public class SeqPanel extends Panel imp
  
        if (av.getConservationSelected())
        {
 -        SliderPanel.setConservationSlider(ap, av.getGlobalColourScheme(),
 +        SliderPanel.setConservationSlider(ap, av.getViewportColourScheme(),
                  "Background");
        }
        if (av.getAbovePIDThreshold())
        {
 -        SliderPanel.setPIDSliderSource(ap, av.getGlobalColourScheme(),
 +        SliderPanel.setPIDSliderSource(ap, av.getViewportColourScheme(),
                  "Background");
        }
  
          SliderPanel.setConservationSlider(ap, stretchGroup.cs,
                  stretchGroup.getName());
        }
-       else
+       if (stretchGroup.cs.getThreshold() > 0)
        {
          SliderPanel.setPIDSliderSource(ap, stretchGroup.cs,
                  stretchGroup.getName());