JAL-4213 don’t pass active selection when actioning the addReferenceAnnotation patch/JAL-4213_addref_with_selection
authorJames Procter <j.procter@dundee.ac.uk>
Thu, 22 Jun 2023 15:39:34 +0000 (17:39 +0200)
committerJames Procter <j.procter@dundee.ac.uk>
Thu, 22 Jun 2023 15:39:46 +0000 (17:39 +0200)
src/jalview/gui/PopupMenu.java

index be9293f..88c1292 100644 (file)
@@ -1734,10 +1734,9 @@ public class PopupMenu extends JPopupMenu implements ColourChangeListener
   protected void addReferenceAnnotations_actionPerformed(
           Map<SequenceI, List<AlignmentAnnotation>> candidates)
   {
-    final SequenceGroup selectionGroup = this.ap.av.getSelectionGroup();
     final AlignmentI alignment = this.ap.getAlignment();
     AlignmentUtils.addReferenceAnnotations(candidates, alignment,
-            selectionGroup);
+            null);
     refresh();
   }