JAL-2034 check context of selection group to catch case when selection was added...
authorJim Procter <jprocter@issues.jalview.org>
Thu, 1 Sep 2016 12:27:42 +0000 (13:27 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Thu, 1 Sep 2016 12:27:42 +0000 (13:27 +0100)
src/jalview/viewmodel/AlignmentViewport.java

index 457f2c5..bd55668 100644 (file)
@@ -2807,6 +2807,7 @@ public abstract class AlignmentViewport implements AlignViewportI,
         selectionIsDefinedGroup = gps.contains(selectionGroup);
       }
     }
-    return selectionIsDefinedGroup;
+    return selectionGroup.getContext() == alignment
+            || selectionIsDefinedGroup;
   }
 }