From: gmungoc Date: Wed, 23 Jan 2019 11:18:16 +0000 (+0000) Subject: JAL-3187 fix out by one feature on structure position X-Git-Tag: Release_2_11_1_0~67 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=d0992d983a2462a92ce648d4becaa41c9d1a3ccc;p=jalview.git JAL-3187 fix out by one feature on structure position --- 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())