JAL-2154 poke JSeq start/end into Vamsas sequence
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Wed, 20 Jul 2016 16:14:45 +0000 (17:14 +0100)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Wed, 20 Jul 2016 16:14:45 +0000 (17:14 +0100)
src/jalview/gui/Jalview2XML.java

index 1633a5d..3f38082 100644 (file)
@@ -2678,9 +2678,12 @@ public class Jalview2XML
     {
       String seqId = jseqs[i].getId();
 
-      if (seqRefIds.get(seqId) != null)
+      SequenceI tmpSeq = seqRefIds.get(seqId);
+      if (tmpSeq != null)
       {
-        tmpseqs.add(seqRefIds.get(seqId));
+        tmpSeq.setStart(jseqs[i].getStart());
+        tmpSeq.setEnd(jseqs[i].getEnd());
+        tmpseqs.add(tmpSeq);
         multipleView = true;
       }
       else
@@ -2708,7 +2711,7 @@ public class Jalview2XML
           hiddenSeqs = new ArrayList<SequenceI>();
         }
 
-        hiddenSeqs.add(seqRefIds.get(seqId));
+        hiddenSeqs.add(tmpSeq);
       }
     }