else if(threshold.getSelectedItem().equals("Below Threshold"))\r
aboveThreshold = AnnotationColourGradient.BELOW_THRESHOLD;\r
\r
- if(aboveThreshold!=AnnotationColourGradient.NO_THRESHOLD && aa.graphLines==null)\r
+ if(aboveThreshold!=AnnotationColourGradient.NO_THRESHOLD && aa.threshold==null)\r
{\r
- aa.addGraphLine(new jalview.datamodel.GraphLine((aa.graphMax-aa.graphMin)/2f, "Threshold", Color.black));\r
+ aa.setThreshold(new jalview.datamodel.GraphLine((aa.graphMax-aa.graphMin)/2f, "Threshold", Color.black));\r
}\r
\r
AnnotationColourGradient acg = new AnnotationColourGradient(aa,\r