From 10e974a35e089a28c7802182f263755b9a8b8808 Mon Sep 17 00:00:00 2001 From: jprocter Date: Wed, 14 Sep 2011 11:50:40 +0100 Subject: [PATCH] JAL-766 JAL-733 - new alignment->jmol associations are automatically used to colour structure --- src/jalview/gui/AppJmolBinding.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 1.7.10.2