JAL-2069 fix setting initial value of slider from threshold
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Mon, 8 Jan 2018 14:52:53 +0000 (14:52 +0000)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Mon, 8 Jan 2018 14:52:53 +0000 (14:52 +0000)
src/jalview/gui/FeatureTypeSettings.java

index c784d8d..5480f5d 100644 (file)
@@ -325,6 +325,7 @@ public class FeatureTypeSettings extends JalviewDialog
        * Graduated colour, by score or attribute value range
        */
       graduatedColour.setSelected(true);
+      updateColourMinMax(); // ensure min, max are set
       colourByRangeCombo.setEnabled(colourByRangeCombo.getItemCount() > 1);
       minColour.setEnabled(true);
       maxColour.setEnabled(true);