From: amwaterhouse Date: Fri, 2 Feb 2007 17:35:20 +0000 (+0000) Subject: Dont add group if seqs not found X-Git-Tag: Release_2_3~381 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=6a44f113099e7ee83deada4d8426cd98757c2425;p=jalview.git Dont add group if seqs not found --- diff --git a/src/jalview/io/AnnotationFile.java b/src/jalview/io/AnnotationFile.java index 80d31fb..56040d9 100755 --- a/src/jalview/io/AnnotationFile.java +++ b/src/jalview/io/AnnotationFile.java @@ -588,8 +588,11 @@ public class AnnotationFile sg.setEndRes( refSeq.findIndex( sg.getEndRes() +1) -1 ); } - al.addGroup(sg); - annotationsHash.put(sg.getName(), sg); + if(sg.getSize()>0) + { + al.addGroup(sg); + annotationsHash.put(sg.getName(), sg); + } } void addProperties(AlignmentI al, StringTokenizer st)