-1 +1 check removed
authoramwaterhouse <Andrew Waterhouse>
Fri, 24 Mar 2006 15:28:30 +0000 (15:28 +0000)
committeramwaterhouse <Andrew Waterhouse>
Fri, 24 Mar 2006 15:28:30 +0000 (15:28 +0000)
src/jalview/appletgui/FeatureRenderer.java

index 0b504be..c71a3cc 100755 (executable)
@@ -187,10 +187,7 @@ public class FeatureRenderer
           if (!sequenceFeatures[sfindex].type.equals(type))\r
             continue;\r
 \r
-          if(sequenceFeatures[sfindex]==null)\r
-          {\r
-          }\r
-          else  if (featureGroups != null\r
+          if (featureGroups != null\r
               && sequenceFeatures[sfindex].featureGroup != null\r
               &&\r
               featureGroups.containsKey(sequenceFeatures[sfindex].featureGroup)\r
@@ -207,9 +204,8 @@ public class FeatureRenderer
 \r
           if (overview)\r
           {\r
-\r
-            if (sequenceFeatures[sfindex].begin - 1 <= start &&\r
-                sequenceFeatures[sfindex].end + 1 >= start)\r
+            if (sequenceFeatures[sfindex].begin <= start &&\r
+                sequenceFeatures[sfindex].end >= start)\r
             {\r
               currentColour = av.featuresDisplayed.get(sequenceFeatures[sfindex].\r
                   type);\r
@@ -240,9 +236,7 @@ public class FeatureRenderer
                           getColour(sequenceFeatures[sfindex].type),\r
                           start, end, y1, width, height);\r
 \r
-\r
         }\r
-\r
       }\r
     }\r
 \r