JAL-1140 bugfix - getDataName throws errors - prefer to use the name given by the...
authorjprocter <jprocter@compbio.dundee.ac.uk>
Mon, 20 Aug 2012 15:08:22 +0000 (16:08 +0100)
committerjprocter <jprocter@compbio.dundee.ac.uk>
Mon, 20 Aug 2012 15:08:22 +0000 (16:08 +0100)
src/jalview/io/RnamlFile.java

index c93201f..eb2e9a8 100644 (file)
@@ -116,7 +116,7 @@ public class RnamlFile extends AlignFile
                  int begin=0;
                  int end = seq.length()-1;
                  
-                 id = safeName(getDataName());
+                 id = current.getName();
                  seqs[i] = new Sequence(id, seq, begin, end);
                  //System.out.println(seq);
                  System.out.println("Rna is still "+rna);