JAL-3305 don't propagate an empty SelectionGroup to complement view
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Thu, 19 Mar 2020 12:29:46 +0000 (12:29 +0000)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Thu, 19 Mar 2020 12:29:46 +0000 (12:29 +0000)
src/jalview/gui/SeqPanel.java

index 7020265..08e1194 100644 (file)
@@ -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);
 
     /*