- * Jalview - A Sequence Alignment Editor and Viewer (Version 2.6)
- * Copyright (C) 2010 J Procter, AM Waterhouse, G Barton, M Clamp, S Searle
+ * Jalview - A Sequence Alignment Editor and Viewer (Version 2.7)
+ * Copyright (C) 2011 J Procter, AM Waterhouse, G Barton, M Clamp, S Searle
.getWidth(), ColourSchemeProperty.getColourName(av
.getGlobalColourScheme()));
}
.getWidth(), ColourSchemeProperty.getColourName(av
.getGlobalColourScheme()));
}
-
- cs.setThreshold(av.getGlobalColourScheme().getThreshold(),
- av.getIgnoreGapsConsensus());
+ // cs is null if shading is an annotationColourGradient
+ if (cs!=null)
+ {
+ cs.setThreshold(av.getGlobalColourScheme().getThreshold(),
+ av.getIgnoreGapsConsensus());
+ }
}
SequenceGroup sg = new SequenceGroup(sequences, null, cs, true, true,
}
SequenceGroup sg = new SequenceGroup(sequences, null, cs, true, true,