From d0992d983a2462a92ce648d4becaa41c9d1a3ccc Mon Sep 17 00:00:00 2001 From: gmungoc Date: Wed, 23 Jan 2019 11:18:16 +0000 Subject: [PATCH] JAL-3187 fix out by one feature on structure position --- src/jalview/renderer/seqfeatures/FeatureRenderer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/jalview/renderer/seqfeatures/FeatureRenderer.java b/src/jalview/renderer/seqfeatures/FeatureRenderer.java index 3989b0c..38f281a 100644 --- a/src/jalview/renderer/seqfeatures/FeatureRenderer.java +++ b/src/jalview/renderer/seqfeatures/FeatureRenderer.java @@ -476,8 +476,8 @@ public class FeatureRenderer extends FeatureRendererModel AlignFrame af = Desktop.getAlignFrameFor(complement); FeatureRendererModel fr2 = af.getFeatureRenderer(); List features = fr2.findComplementFeaturesAtResidue( - seq, seq.findPosition(column)); - // todo: ensure ordered by feature render order + seq, seq.findPosition(column - 1)); + ReverseListIterator it = new ReverseListIterator<>( features); while (it.hasNext()) -- 1.7.10.2