From 8b4803348445fde3efd484eabc39fadd1d9fd3e8 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Fri, 29 Jun 2018 17:14:21 +0100 Subject: [PATCH] JAL-3048 use FileParse to transfer File to NewickFile parser --- src/jalview/gui/AlignFrame.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/jalview/gui/AlignFrame.java b/src/jalview/gui/AlignFrame.java index dafeafc..4695ed7 100644 --- a/src/jalview/gui/AlignFrame.java +++ b/src/jalview/gui/AlignFrame.java @@ -3926,7 +3926,8 @@ public class AlignFrame extends GAlignFrame implements DropTargetListener, NewickFile fin = null; try { - fin = new NewickFile(filePath, DataSourceType.FILE); + fin = new NewickFile(new FileParse( + chooser.getSelectedFile(), DataSourceType.FILE)); viewport.setCurrentTree( showNewickTree(fin, filePath).getTree()); } catch (Exception ex) -- 1.7.10.2