&& !jalview.util.Comparison.isGap(c))
{
- if (predefinedColours)
+ if (annotation.annotations[j].colour != null)
{
- if (annotation.annotations[j].colour != null)
+ if (predefinedColours || annotation.hasIcons)
+ {
return annotation.annotations[j].colour;
- else
+ }
+ }
+ else
+ {
+ if (predefinedColours)
+ {
return currentColour;
+ }
}
-
if (aboveAnnotationThreshold == NO_THRESHOLD
|| (annotationThreshold != null
&& aboveAnnotationThreshold == ABOVE_THRESHOLD && annotation.annotations[j].value >= annotationThreshold.value)