From: Jim Procter Date: Thu, 1 Sep 2016 12:27:42 +0000 (+0100) Subject: JAL-2034 check context of selection group to catch case when selection was added... X-Git-Tag: Release_2_10_0~49^2~1 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=47abd39554b389bbd420367a3291872e7b098727;p=jalview.git JAL-2034 check context of selection group to catch case when selection was added/removed from alignment without deselection/reselection --- 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; } }