JAL-3187 fix out by one feature on structure position
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Wed, 23 Jan 2019 11:18:16 +0000 (11:18 +0000)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Wed, 23 Jan 2019 11:18:16 +0000 (11:18 +0000)
src/jalview/renderer/seqfeatures/FeatureRenderer.java

index 3989b0c..38f281a 100644 (file)
@@ -476,8 +476,8 @@ public class FeatureRenderer extends FeatureRendererModel
       AlignFrame af = Desktop.getAlignFrameFor(complement);
       FeatureRendererModel fr2 = af.getFeatureRenderer();
       List<SequenceFeature> features = fr2.findComplementFeaturesAtResidue(
-              seq, seq.findPosition(column));
-      // todo: ensure ordered by feature render order
+              seq, seq.findPosition(column - 1));
+
       ReverseListIterator<SequenceFeature> it = new ReverseListIterator<>(
               features);
       while (it.hasNext())