From 81029aa176cd9a4553e297f7be95931dddc89974 Mon Sep 17 00:00:00 2001 From: gmungoc Date: Thu, 19 Mar 2020 12:29:46 +0000 Subject: [PATCH] JAL-3305 don't propagate an empty SelectionGroup to complement view --- src/jalview/gui/SeqPanel.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jalview/gui/SeqPanel.java b/src/jalview/gui/SeqPanel.java index 7020265..08e1194 100644 --- a/src/jalview/gui/SeqPanel.java +++ b/src/jalview/gui/SeqPanel.java @@ -2763,7 +2763,7 @@ public class SeqPanel extends JPanel * Map sequence selection */ SequenceGroup sg = MappingUtils.mapSequenceGroup(seqsel, sourceAv, av); - av.setSelectionGroup(sg); + av.setSelectionGroup(sg != null && sg.getSize() > 0 ? sg : null); av.isSelectionGroupChanged(true); /* -- 1.7.10.2