From: Jim Procter Date: Sun, 7 Aug 2016 15:51:11 +0000 (+0100) Subject: JAL-2068 add the worker to the currently displayed alignment panel and viewport X-Git-Tag: Release_2_10_0~45^2~1^2 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=60083c09e41c5685e7afea332b58dbca2cdd61a7;p=jalview.git JAL-2068 add the worker to the currently displayed alignment panel and viewport --- diff --git a/src/jalview/workers/AlignmentAnnotationFactory.java b/src/jalview/workers/AlignmentAnnotationFactory.java index f804a19..2b7d9e1 100644 --- a/src/jalview/workers/AlignmentAnnotationFactory.java +++ b/src/jalview/workers/AlignmentAnnotationFactory.java @@ -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 {