From 9175e97621ea51c3e98145545b3957842126c09e Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Fri, 24 Mar 2006 15:28:30 +0000 Subject: [PATCH] -1 +1 check removed --- src/jalview/appletgui/FeatureRenderer.java | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/jalview/appletgui/FeatureRenderer.java b/src/jalview/appletgui/FeatureRenderer.java index 0b504be..c71a3cc 100755 --- a/src/jalview/appletgui/FeatureRenderer.java +++ b/src/jalview/appletgui/FeatureRenderer.java @@ -187,10 +187,7 @@ public class FeatureRenderer if (!sequenceFeatures[sfindex].type.equals(type)) continue; - if(sequenceFeatures[sfindex]==null) - { - } - else if (featureGroups != null + if (featureGroups != null && sequenceFeatures[sfindex].featureGroup != null && featureGroups.containsKey(sequenceFeatures[sfindex].featureGroup) @@ -207,9 +204,8 @@ public class FeatureRenderer if (overview) { - - if (sequenceFeatures[sfindex].begin - 1 <= start && - sequenceFeatures[sfindex].end + 1 >= start) + if (sequenceFeatures[sfindex].begin <= start && + sequenceFeatures[sfindex].end >= start) { currentColour = av.featuresDisplayed.get(sequenceFeatures[sfindex]. type); @@ -240,9 +236,7 @@ public class FeatureRenderer getColour(sequenceFeatures[sfindex].type), start, end, y1, width, height); - } - } } -- 1.7.10.2