From: amwaterhouse Date: Fri, 24 Mar 2006 15:28:30 +0000 (+0000) Subject: -1 +1 check removed X-Git-Tag: Root_VamJalview_2_07b+~19 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=9175e97621ea51c3e98145545b3957842126c09e;p=jalview.git -1 +1 check removed --- 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); - } - } }