JAL-2438 corrected getFeatureRenderer()
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Wed, 15 Mar 2017 12:49:51 +0000 (12:49 +0000)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Wed, 15 Mar 2017 12:49:51 +0000 (12:49 +0000)
src/jalview/appletgui/AppletJmolBinding.java

index 8ddff52..9b8a235 100644 (file)
@@ -54,15 +54,7 @@ class AppletJmolBinding extends JalviewJmolBinding
   public jalview.api.FeatureRenderer getFeatureRenderer(
           AlignmentViewPanel alignment)
   {
-    AlignmentPanel alignPanel = (AlignmentPanel) alignment;
-    if (alignPanel.av.isShowSequenceFeatures())
-    {
-      return alignPanel.getFeatureRenderer();
-    }
-    else
-    {
-      return null;
-    }
+    return appletJmolBinding.ap.getFeatureRenderer();
   }
 
   @Override