Must copy old dbrefs
authoramwaterhouse <Andrew Waterhouse>
Mon, 20 Nov 2006 11:24:45 +0000 (11:24 +0000)
committeramwaterhouse <Andrew Waterhouse>
Mon, 20 Nov 2006 11:24:45 +0000 (11:24 +0000)
src/jalview/datamodel/Sequence.java

index cad59c8..7df3eaf 100755 (executable)
@@ -632,6 +632,7 @@ public class Sequence implements SequenceI
       }
 
     DBRefEntry[] temp = new DBRefEntry[iSize + 1];
+    System.arraycopy(dbrefs, 0, temp, 0, iSize);
     temp[temp.length - 1] = entry;
 
     dbrefs = temp;