From: gmungoc Date: Thu, 19 Mar 2020 12:29:46 +0000 (+0000) Subject: JAL-3305 don't propagate an empty SelectionGroup to complement view X-Git-Tag: Develop-2_11_2_0-d20201215~75 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=81029aa176cd9a4553e297f7be95931dddc89974;p=jalview.git JAL-3305 don't propagate an empty SelectionGroup to complement view --- 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); /*