From 47abd39554b389bbd420367a3291872e7b098727 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Thu, 1 Sep 2016 13:27:42 +0100 Subject: [PATCH] JAL-2034 check context of selection group to catch case when selection was added/removed from alignment without deselection/reselection --- src/jalview/viewmodel/AlignmentViewport.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/jalview/viewmodel/AlignmentViewport.java b/src/jalview/viewmodel/AlignmentViewport.java index 457f2c5..bd55668 100644 --- a/src/jalview/viewmodel/AlignmentViewport.java +++ b/src/jalview/viewmodel/AlignmentViewport.java @@ -2807,6 +2807,7 @@ public abstract class AlignmentViewport implements AlignViewportI, selectionIsDefinedGroup = gps.contains(selectionGroup); } } - return selectionIsDefinedGroup; + return selectionGroup.getContext() == alignment + || selectionIsDefinedGroup; } } -- 1.7.10.2