From 124f64c901bc2000151a90c14541b490a6ac7f7e Mon Sep 17 00:00:00 2001 From: gmungoc Date: Thu, 6 Feb 2020 15:21:30 +0000 Subject: [PATCH] JAL-3509 better placement of call to notifyFeaturesChanged() --- src/jalview/ext/jmol/JalviewJmolBinding.java | 2 -- src/jalview/gui/AlignViewport.java | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/jalview/ext/jmol/JalviewJmolBinding.java b/src/jalview/ext/jmol/JalviewJmolBinding.java index 7ba7aaf..e4ebde5 100644 --- a/src/jalview/ext/jmol/JalviewJmolBinding.java +++ b/src/jalview/ext/jmol/JalviewJmolBinding.java @@ -1199,8 +1199,6 @@ public abstract class JalviewJmolBinding extends AAStructureBindingModel FeatureSettingsModelI colours = new Pdb().getFeatureColourScheme(); ((AppJmol) getViewer()).getAlignmentPanel().av .applyFeaturesStyle(colours); - // ... and refresh again to ensure FeatureSettings is in synch! - fr.notifyFeaturesChanged(); } refreshGUI(); loadNotifiesHandled++; diff --git a/src/jalview/gui/AlignViewport.java b/src/jalview/gui/AlignViewport.java index 8e8f992..77d98ad 100644 --- a/src/jalview/gui/AlignViewport.java +++ b/src/jalview/gui/AlignViewport.java @@ -1095,6 +1095,8 @@ public class AlignViewport extends AlignmentViewport fr.orderFeatures(featureSettings); } fr.setTransparency(featureSettings.getTransparency()); + + fr.notifyFeaturesChanged(); } public String getViewName() -- 1.7.10.2