JAL-961 store result of conservation analysis worker on the alignment viewport
[jalview.git] / src / jalview / viewmodel / AlignmentViewport.java
index 9e9c3fe..7e383a9 100644 (file)
@@ -299,7 +299,13 @@ public abstract class AlignmentViewport implements AlignViewportI
    * view
    */
   protected Hashtable[] hStrucConsensus = null;
-
+  
+  protected Conservation hconservation = null;
+  @Override
+  public void setConservation(Conservation cons)
+  {
+    hconservation = cons;
+  }
   /**
    * percentage gaps allowed in a column before all amino acid properties should
    * be considered unconserved
@@ -1505,7 +1511,7 @@ public abstract class AlignmentViewport implements AlignViewportI
         if (aan[an].autoCalculated && aan[an].groupRef != null)
         {
           oldrfs.add(aan[an].groupRef);
-          alignment.deleteAnnotation(aan[an]);
+          alignment.deleteAnnotation(aan[an],false);
         }
       }
     }