JAL-1367 clear the current representative sequence
authorJim Procter <jprocter@compbio.dundee.ac.uk>
Fri, 30 Aug 2013 11:33:28 +0000 (12:33 +0100)
committerJim Procter <jprocter@compbio.dundee.ac.uk>
Fri, 30 Aug 2013 11:33:28 +0000 (12:33 +0100)
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
    *