adjustForAlignment on new seq ref
authoramwaterhouse <Andrew Waterhouse>
Wed, 18 Apr 2007 12:01:56 +0000 (12:01 +0000)
committeramwaterhouse <Andrew Waterhouse>
Wed, 18 Apr 2007 12:01:56 +0000 (12:01 +0000)
src/jalview/io/AnnotationFile.java

index 1b7b72a..2053fef 100755 (executable)
@@ -367,6 +367,7 @@ public class AnnotationFile
           catch (Exception ex)\r
           {\r
             refSeqIndex = 1;\r
+            refSeq=null;\r
           }\r
 \r
           continue ;\r
@@ -433,6 +434,7 @@ public class AnnotationFile
         if (refSeq != null)\r
         {\r
           annotation.createSequenceMapping(refSeq, refSeqIndex, false);\r
+          annotation.adjustForAlignment();\r
           refSeq.addAlignmentAnnotation(annotation);\r
         }\r
 \r