From: jprocter Date: Mon, 24 Sep 2012 16:48:02 +0000 (+0100) Subject: only recalc group conservation after last sequence operated on in a bulk add/remove... X-Git-Tag: Jalview_2_9~303 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=48b925b3dd950c86b1add0f2a90a2d0f8b6e316e;p=jalview.git only recalc group conservation after last sequence operated on in a bulk add/remove operation --- diff --git a/src/jalview/appletgui/IdPanel.java b/src/jalview/appletgui/IdPanel.java index 0042856..8a0efc3 100755 --- a/src/jalview/appletgui/IdPanel.java +++ b/src/jalview/appletgui/IdPanel.java @@ -378,7 +378,7 @@ public class IdPanel extends Panel implements MouseListener, for (int i = start; i <= end; i++) { av.getSelectionGroup().addSequence( - av.getAlignment().getSequenceAt(i), false); + av.getAlignment().getSequenceAt(i), i==end); } } diff --git a/src/jalview/gui/IdPanel.java b/src/jalview/gui/IdPanel.java index a42251e..7a2ecf7 100755 --- a/src/jalview/gui/IdPanel.java +++ b/src/jalview/gui/IdPanel.java @@ -376,7 +376,7 @@ public class IdPanel extends JPanel implements MouseListener, for (int i = start; i <= end; i++) { av.getSelectionGroup().addSequence( - av.getAlignment().getSequenceAt(i), true); + av.getAlignment().getSequenceAt(i), i==end); } }