JAL-1752 structure highlight scoped to only its mapped sequences
[jalview.git] / src / jalview / structure / StructureSelectionManager.java
index ef4a7a5..0253a7e 100644 (file)
@@ -756,6 +756,10 @@ public class StructureSelectionManager
   protected void highlightStructure(StructureListener sl, SequenceI seq,
           int index)
   {
+    if (!sl.isListeningFor(seq))
+    {
+      return;
+    }
     int atomNo;
     List<AtomSpec> atoms = new ArrayList<AtomSpec>();
     for (StructureMapping sm : mappings)