From 9cbe7b851c119115631c2af7e30ef4a806496bde Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Fri, 30 Aug 2013 12:33:28 +0100 Subject: [PATCH] JAL-1367 clear the current representative sequence --- src/jalview/gui/AlignFrame.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/jalview/gui/AlignFrame.java b/src/jalview/gui/AlignFrame.java index ceb08ee..05799a8 100755 --- a/src/jalview/gui/AlignFrame.java +++ b/src/jalview/gui/AlignFrame.java @@ -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 * -- 1.7.10.2