From 1b06ffc30dc430351081ecf4bc1515f9448e7ec4 Mon Sep 17 00:00:00 2001 From: tcofoegbu Date: Fri, 18 Sep 2015 15:06:02 +0100 Subject: [PATCH] JAL-1506 revised implementation to clear only selected columns after a delete operation --- src/jalview/gui/AlignFrame.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/jalview/gui/AlignFrame.java b/src/jalview/gui/AlignFrame.java index e40e936..8f9e49e 100644 --- a/src/jalview/gui/AlignFrame.java +++ b/src/jalview/gui/AlignFrame.java @@ -2386,10 +2386,10 @@ public class AlignFrame extends GAlignFrame implements DropTargetListener, { return; } - viewport.getColumnSelection().removeElements(sg.getStartRes(), - sg.getEndRes() + 1); } + viewport.getColumnSelection().removeElements(sg.getStartRes(), + sg.getEndRes() + 1); SequenceI[] cut = sg.getSequences() .toArray(new SequenceI[sg.getSize()]); @@ -2401,7 +2401,6 @@ public class AlignFrame extends GAlignFrame implements DropTargetListener, viewport.setSelectionGroup(null); viewport.sendSelection(); viewport.getAlignment().deleteGroup(sg); - viewport.getColumnSelection().clear(); viewport.firePropertyChange("alignment", null, viewport.getAlignment() .getSequences()); -- 1.7.10.2