From f980095ff022f62822f1522c221957e49a7bbfc7 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Mon, 23 Apr 2007 11:46:06 +0000 Subject: [PATCH] remove seqref annotations --- src/jalview/datamodel/Alignment.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) -- 1.7.10.2