From: Jim Procter Date: Mon, 16 Oct 2017 13:35:17 +0000 (+0100) Subject: JAL-2481 patch to fix findFeatureColour for end-of-sequence test X-Git-Tag: Release_2_10_3b1~107^2~3 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=a2f6cd5b735ce1a8adf4dd5cd4d71b6d0a477587;p=jalview.git JAL-2481 patch to fix findFeatureColour for end-of-sequence test --- diff --git a/src/jalview/renderer/seqfeatures/FeatureRenderer.java b/src/jalview/renderer/seqfeatures/FeatureRenderer.java index f16522f..1f47da3 100644 --- a/src/jalview/renderer/seqfeatures/FeatureRenderer.java +++ b/src/jalview/renderer/seqfeatures/FeatureRenderer.java @@ -216,7 +216,8 @@ public class FeatureRenderer extends FeatureRendererModel return null; } - if (Comparison.isGap(seq.getCharAt(column))) + // column is 'base 1' but getCharAt is an array index (ie from 0) + if (Comparison.isGap(seq.getCharAt(column - 1))) { /* * returning null allows the colour scheme to provide gap colour