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);