From eb5043c4c5932b46aa018e37ae42bd011405cd87 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Mon, 21 Nov 2016 16:31:45 +0000 Subject: [PATCH] JAL-2335 patched FeatureRendererModel.findFeaturesAtRes to honour isContactFeature --- src/jalview/viewmodel/seqfeatures/FeatureRendererModel.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/jalview/viewmodel/seqfeatures/FeatureRendererModel.java b/src/jalview/viewmodel/seqfeatures/FeatureRendererModel.java index 7ff9adf..c1ad465 100644 --- a/src/jalview/viewmodel/seqfeatures/FeatureRendererModel.java +++ b/src/jalview/viewmodel/seqfeatures/FeatureRendererModel.java @@ -288,8 +288,12 @@ public abstract class FeatureRendererModel implements continue; } - if ((features[i].getBegin() <= res) - && (features[i].getEnd() >= res)) + // check if start/end are at res, and if not a contact feature, that res + // lies between start and end + if ((features[i].getBegin() == res || features[i].getEnd() == res) + || (!features[i].isContactFeature() + && (features[i].getBegin() < res) && (features[i] + .getEnd() >= res))) { tmp.add(features[i]); } -- 1.7.10.2