end<start for empty sequences in Sequence[] from SeqCigar[]
authorjprocter <Jim Procter>
Mon, 14 Aug 2006 09:51:25 +0000 (09:51 +0000)
committerjprocter <Jim Procter>
Mon, 14 Aug 2006 09:51:25 +0000 (09:51 +0000)
src/jalview/datamodel/SeqCigar.java

index 08c66d2..3366dcd 100644 (file)
@@ -417,7 +417,7 @@ public class SeqCigar
       SequenceI ref = alseqs[i].getRefSeq();
       seqs[i] = new Sequence(ref.getName(), g_seqs[i].toString(),
                              ref.getStart() + alseqs[i].start+bounds[0],
-                             ref.getStart() + alseqs[i].start+bounds[2]);
+                             ref.getStart() + alseqs[i].start+(bounds[2]==0 ? -1 : bounds[2]));
       seqs[i].setDatasetSequence(ref);
     }
     if (segments!=null) {