From: jprocter Date: Wed, 14 Sep 2011 10:50:40 +0000 (+0100) Subject: JAL-766 JAL-733 - new alignment->jmol associations are automatically used to colour... X-Git-Tag: Release_2_7~54 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=10e974a35e089a28c7802182f263755b9a8b8808;p=jalview.git JAL-766 JAL-733 - new alignment->jmol associations are automatically used to colour structure --- diff --git a/src/jalview/gui/AppJmolBinding.java b/src/jalview/gui/AppJmolBinding.java index d15b9eb..3b915ae 100644 --- a/src/jalview/gui/AppJmolBinding.java +++ b/src/jalview/gui/AppJmolBinding.java @@ -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);