JAL-976 clean out associated annotation
[jalview.git] / src / jalview / ws / jws2 / AAConsClient.java
index bf7be5d..d1bf303 100644 (file)
@@ -176,6 +176,10 @@ public class AAConsClient extends JabawsAlignCalcWorker
 
   public static void removeAAConsAnnotation(AlignmentPanel alignPanel)
   {
+    for (AlignmentAnnotation aa: alignPanel.getAlignment().findAnnotation(SequenceAnnotationWSClient.AAConsCalcId))
+    {
+      alignPanel.getAlignment().deleteAnnotation(aa);
+    }
     // List<AlignmentAnnotation>
     // ourannots=alignPanel.getAlignment().findAnnotation(Screen3D.)
     // TODO Auto-generated method stub