JAL-1367 clear the current representative sequence
[jalview.git] / src / jalview / gui / AlignFrame.java
index ceb08ee..05799a8 100755 (executable)
@@ -5500,7 +5500,15 @@ public class AlignFrame extends GAlignFrame implements DropTargetListener,
       alignPanel.paintAlignment(true);
     }
   }
-
+  public void clearAlignmentSeqRep()
+  {
+    if (viewport.getAlignment().hasSeqrep()) {
+      viewport.getAlignment().setSeqrep(null);
+      PaintRefresher.Refresh(this, viewport.getSequenceSetId());
+      alignPanel.updateAnnotation();
+      alignPanel.paintAlignment(true);
+    }
+  }
   /**
    * make the given alignmentPanel the currently selected tab
    *