JAL-2068 add the worker to the currently displayed alignment panel and viewport patch/JAL-2068_JAL-2169_multiviewannotworker
authorJim Procter <jprocter@issues.jalview.org>
Sun, 7 Aug 2016 15:51:11 +0000 (16:51 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Sun, 7 Aug 2016 15:51:11 +0000 (16:51 +0100)
src/jalview/workers/AlignmentAnnotationFactory.java

index f804a19..2b7d9e1 100644 (file)
@@ -32,11 +32,11 @@ public class AlignmentAnnotationFactory
   {
     // TODO need an interface for AlignFrame by which to access
     // its AlignViewportI and AlignmentViewPanel
-    AlignFrame currentAlignFrame = Jalview.getCurrentAlignFrame() ;
+    AlignmentViewPanel currentAlignFrame = Jalview.getCurrentAlignFrame().alignPanel;
     if (currentAlignFrame != null)
     {
-      newCalculator(currentAlignFrame.getViewport(), currentAlignFrame
-              .getAlignPanels().get(0), counter);
+      newCalculator(currentAlignFrame.getAlignViewport(),
+              currentAlignFrame, counter);
     }
     else
     {