From 48b925b3dd950c86b1add0f2a90a2d0f8b6e316e Mon Sep 17 00:00:00 2001 From: jprocter Date: Mon, 24 Sep 2012 17:48:02 +0100 Subject: [PATCH] only recalc group conservation after last sequence operated on in a bulk add/remove operation --- src/jalview/appletgui/IdPanel.java | 2 +- src/jalview/gui/IdPanel.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); } } -- 1.7.10.2