From: amwaterhouse Date: Mon, 23 Apr 2007 11:46:06 +0000 (+0000) Subject: remove seqref annotations X-Git-Tag: Release_2_3~196 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=f980095ff022f62822f1522c221957e49a7bbfc7;p=jalview.git remove seqref annotations --- diff --git a/src/jalview/datamodel/Alignment.java b/src/jalview/datamodel/Alignment.java index d26314e..83d2499 100755 --- a/src/jalview/datamodel/Alignment.java +++ b/src/jalview/datamodel/Alignment.java @@ -149,7 +149,7 @@ public class Alignment // derive new sequence SequenceI adding = snew.deriveSequence(); getDataset().addSequence(adding.getDatasetSequence()); - snew = adding; + snew = adding; } } if (sequences==null) { @@ -466,6 +466,9 @@ public class Alignment */ public void deleteAnnotation(AlignmentAnnotation aa) { + if(aa.sequenceRef!=null) + aa.sequenceRef.removeAlignmentAnnotation(aa); + int aSize = 1; if (annotations != null)