JAL-1628 method to hide insertions to current sequence selection
[jalview.git] / src / jalview / viewmodel / AlignmentViewport.java
index 9510c2f..98b8d64 100644 (file)
@@ -649,9 +649,14 @@ public abstract class AlignmentViewport implements AlignViewportI
     return colSel;
   }
 
+  @Override
   public void setColumnSelection(ColumnSelection colSel)
   {
     this.colSel = colSel;
+    if (colSel != null)
+    {
+      updateHiddenColumns();
+    }
   }
 
   /**