X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fappletgui%2FSeqPanel.java;h=4aa205e8b3924d50f4bb26d8ec661ca218402dd6;hb=4324ab9c09ac74782aef9493b98280060bccd5e8;hp=f0ec51ce57ab19bee297368ce6ec3152f12360ec;hpb=fe654aee9b43fb9c9307830c277f1e63576826ae;p=jalview.git diff --git a/src/jalview/appletgui/SeqPanel.java b/src/jalview/appletgui/SeqPanel.java index f0ec51c..4aa205e 100644 --- a/src/jalview/appletgui/SeqPanel.java +++ b/src/jalview/appletgui/SeqPanel.java @@ -909,7 +909,9 @@ public class SeqPanel extends Panel implements MouseMotionListener, /** * Removes from the list of features any that start after, or end before, the * given column position. This allows us to retain only those features - * adjacent to a gapped position that straddle the position. + * adjacent to a gapped position that straddle the position. Contact features + * that 'straddle' the position are also removed, since they are not 'at' the + * position. * * @param features * @param column @@ -924,7 +926,8 @@ public class SeqPanel extends Panel implements MouseMotionListener, while (it.hasNext()) { SequenceFeature sf = it.next(); - if (sequence.findIndex(sf.getBegin()) > column + if (sf.isContactFeature() + || sequence.findIndex(sf.getBegin()) > column || sequence.findIndex(sf.getEnd()) < column) { it.remove();