From: j.procter@dundee.ac.uk Date: Fri, 18 Jul 2014 12:31:32 +0000 (+0100) Subject: ensure the dataset is instantiated before materialising alignment viewport X-Git-Tag: Jalview_2_9~179^2~7 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=25bf7406cdf030f4b5d87d3e93d0fd769d956b19;p=jalview.git ensure the dataset is instantiated before materialising alignment viewport --- diff --git a/src/jalview/gui/AlignFrame.java b/src/jalview/gui/AlignFrame.java index bf9888c..e6b7af4 100644 --- a/src/jalview/gui/AlignFrame.java +++ b/src/jalview/gui/AlignFrame.java @@ -263,15 +263,17 @@ public class AlignFrame extends GAlignFrame implements DropTargetListener, int width, int height, String sequenceSetId, String viewId) { setSize(width, height); - viewport = new AlignViewport(al, hiddenColumns, sequenceSetId, viewId); - - alignPanel = new AlignmentPanel(this, viewport); if (al.getDataset() == null) { al.setDataset(null); } + viewport = new AlignViewport(al, hiddenColumns, sequenceSetId, viewId); + + alignPanel = new AlignmentPanel(this, viewport); + + addAlignmentPanel(alignPanel, true); init(); }