- av.featuresDisplayed.put(features[index].getType(),\r
- new Integer( getColour(features[index].getType()).getRGB()) );\r
- allfeatures.addElement(features[index].getType());\r
+ if(!(features[index].begin == 0 && features[index].end ==0))\r
+ {\r
+ // If beginning and end are 0, the feature is for the whole sequence\r
+ // and we don't want to render the feature in the normal way\r
+\r
+ if (getColour(features[index].getType()) == null)\r
+ createRandomColour(features[index].getType());\r
+\r
+ av.featuresDisplayed.put(features[index].getType(),\r
+ new Integer(getColour(features[index].\r
+ getType()).getRGB()));\r
+ allfeatures.addElement(features[index].getType());\r
+ }\r