Dont add group if seqs not found
authoramwaterhouse <Andrew Waterhouse>
Fri, 2 Feb 2007 17:35:20 +0000 (17:35 +0000)
committeramwaterhouse <Andrew Waterhouse>
Fri, 2 Feb 2007 17:35:20 +0000 (17:35 +0000)
src/jalview/io/AnnotationFile.java

index 80d31fb..56040d9 100755 (executable)
@@ -588,8 +588,11 @@ public class AnnotationFile
       sg.setEndRes(   refSeq.findIndex( sg.getEndRes() +1) -1 );\r
     }\r
 \r
-    al.addGroup(sg);\r
-    annotationsHash.put(sg.getName(), sg);\r
+    if(sg.getSize()>0)\r
+    {\r
+      al.addGroup(sg);\r
+      annotationsHash.put(sg.getName(), sg);\r
+    }\r
   }\r
 \r
   void addProperties(AlignmentI al, StringTokenizer st)\r