JAL-3509 better placement of call to notifyFeaturesChanged()
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Thu, 6 Feb 2020 15:21:30 +0000 (15:21 +0000)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Thu, 6 Feb 2020 15:21:30 +0000 (15:21 +0000)
src/jalview/ext/jmol/JalviewJmolBinding.java
src/jalview/gui/AlignViewport.java

index 7ba7aaf..e4ebde5 100644 (file)
@@ -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++;
index 8e8f992..77d98ad 100644 (file)
@@ -1095,6 +1095,8 @@ public class AlignViewport extends AlignmentViewport
       fr.orderFeatures(featureSettings);
     }
     fr.setTransparency(featureSettings.getTransparency());
+
+    fr.notifyFeaturesChanged();
   }
 
   public String getViewName()