JAL-766 JAL-733 - new alignment->jmol associations are automatically used to colour...
authorjprocter <jprocter@compbio.dundee.ac.uk>
Wed, 14 Sep 2011 10:50:40 +0000 (11:50 +0100)
committerjprocter <jprocter@compbio.dundee.ac.uk>
Wed, 14 Sep 2011 10:50:40 +0000 (11:50 +0100)
src/jalview/gui/AppJmolBinding.java

index d15b9eb..3b915ae 100644 (file)
@@ -127,8 +127,8 @@ public class AppJmolBinding extends jalview.ext.jmol.JalviewJmolBinding
   public void updateColours(Object source)
   {
     AlignmentPanel ap = (AlignmentPanel) source,topap;
-    // ignore events from unrelated or non-user interactive frames
-    if ((topap=appJmolWindow.getAlignmentPanelFor(ap.av.getAlignment()))==null || topap.alignFrame.getCurrentView() != ap.av || !appJmolWindow.isUsedforcolourby(ap))
+    // ignore events from panels not used to colour this view
+    if (!appJmolWindow.isUsedforcolourby(ap))
       return;
     if (!isLoadingFromArchive()) {
       colourBySequence(ap.av.getShowSequenceFeatures(), ap);