viewport flag to indicate when structure view needs updating
[jalview.git] / src / jalview / gui / TreeCanvas.java
index 278e682..dbb7e2b 100755 (executable)
@@ -1065,15 +1065,16 @@ public class TreeCanvas extends JPanel implements MouseListener, Runnable,
             }
           }
         }
+        // indicate that associated structure views will need an update
+        aps[a].av.setUpdateStructures(true);
       }
     }
 
-    // notify the panel(s) to redo any group specific stuff.
+    // notify the panel(s) to redo any group specific stuff
+    // also updates structure views if necessary
     for (int a = 0; a < aps.length; a++)
     {
       aps[a].updateAnnotation();
-      // TODO: JAL-868 - need to ensure view colour change message is broadcast
-      // to any Jmols listening in
       final AlignViewportI codingComplement = aps[a].av
               .getCodingComplement();
       if (codingComplement != null)