From: tcofoegbu Date: Fri, 18 Sep 2015 14:06:02 +0000 (+0100) Subject: JAL-1506 revised implementation to clear only selected columns after a delete operation X-Git-Tag: Release_2_10_0~398 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=1b06ffc30dc430351081ecf4bc1515f9448e7ec4;p=jalview.git JAL-1506 revised implementation to clear only selected columns after a delete operation --- 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());