JAL-2481 patch to fix findFeatureColour for end-of-sequence test
authorJim Procter <jprocter@issues.jalview.org>
Mon, 16 Oct 2017 13:35:17 +0000 (14:35 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Tue, 17 Oct 2017 13:19:29 +0000 (14:19 +0100)
src/jalview/renderer/seqfeatures/FeatureRenderer.java

index f16522f..1f47da3 100644 (file)
@@ -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