From: gmungoc Date: Thu, 24 Mar 2016 10:50:48 +0000 (+0000) Subject: JAL-2032 structure follow mouseover in a copy of a mapped sequence X-Git-Tag: Release_2_10_0~285^2~1 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=729023f4356ec3b3a230eb5d96b827505b167700;p=jalview.git JAL-2032 structure follow mouseover in a copy of a mapped sequence --- diff --git a/src/jalview/structure/StructureSelectionManager.java b/src/jalview/structure/StructureSelectionManager.java index 6bb04ab..28fc3d1 100644 --- a/src/jalview/structure/StructureSelectionManager.java +++ b/src/jalview/structure/StructureSelectionManager.java @@ -880,7 +880,10 @@ public class StructureSelectionManager List atoms = new ArrayList(); for (StructureMapping sm : mappings) { - if (sm.sequence == seq || sm.sequence == seq.getDatasetSequence()) + if (sm.sequence == seq + || sm.sequence == seq.getDatasetSequence() + || (sm.sequence.getDatasetSequence() != null && sm.sequence + .getDatasetSequence() == seq.getDatasetSequence())) { for (int index : positions) { diff --git a/src/jalview/structures/models/AAStructureBindingModel.java b/src/jalview/structures/models/AAStructureBindingModel.java index 2ed59ae..42fbfa9 100644 --- a/src/jalview/structures/models/AAStructureBindingModel.java +++ b/src/jalview/structures/models/AAStructureBindingModel.java @@ -633,7 +633,10 @@ public abstract class AAStructureBindingModel extends { for (SequenceI s : seqs) { - if (s == seq) + if (s == seq + || (s.getDatasetSequence() != null && s + .getDatasetSequence() == seq + .getDatasetSequence())) { return true; }