X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fgui%2FAnnotationColourChooser.java;fp=src%2Fjalview%2Fgui%2FAnnotationColourChooser.java;h=3278a76189cbabc0307c1ecde1c08777bca90eb9;hb=e5ecde79316259cf913da454373e9f5ee7488798;hp=61ef75f062905738a5f807298124b4c094cb43a9;hpb=4c2b2e8a3668a6d85f95e699f1a8184de46ba418;p=jalview.git diff --git a/src/jalview/gui/AnnotationColourChooser.java b/src/jalview/gui/AnnotationColourChooser.java index 61ef75f..3278a76 100644 --- a/src/jalview/gui/AnnotationColourChooser.java +++ b/src/jalview/gui/AnnotationColourChooser.java @@ -123,8 +123,8 @@ public class AnnotationColourChooser extends JPanel if (oldcs instanceof AnnotationColourGradient) { AnnotationColourGradient acg = (AnnotationColourGradient) oldcs; - currentColours.setSelected(acg.predefinedColours); - if (!acg.predefinedColours) + currentColours.setSelected(acg.isPredefinedColours()); + if (!acg.isPredefinedColours()) { minColour.setBackground(acg.getMinColour()); maxColour.setBackground(acg.getMaxColour()); @@ -550,7 +550,7 @@ public class AnnotationColourChooser extends JPanel if (currentAnnotation.graphMin == 0f && currentAnnotation.graphMax == 0f) { - acg.predefinedColours = true; + acg.setPredefinedColours(true); } acg.thresholdIsMinMax = thresholdIsMin.isSelected();