From 9bbb5a6c6054d67fb98dba12566e7c2059ced62f Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Tue, 4 Apr 2006 09:38:11 +0000 Subject: [PATCH] set current tree once the tree is prepared --- src/jalview/appletgui/TreePanel.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/jalview/appletgui/TreePanel.java b/src/jalview/appletgui/TreePanel.java index 61b0546..6d17918 100755 --- a/src/jalview/appletgui/TreePanel.java +++ b/src/jalview/appletgui/TreePanel.java @@ -37,6 +37,7 @@ public class TreePanel extends Frame implements ActionListener, ItemListener int end; TreeCanvas treeCanvas; NJTree tree; + AlignViewport av; public NJTree getTree() { @@ -99,6 +100,7 @@ public class TreePanel extends Frame implements ActionListener, ItemListener String pwtype, int s, int e, NewickFile newTree) { + this.av = av; this.type = type; this.pwtype = pwtype; @@ -149,6 +151,8 @@ public class TreePanel extends Frame implements ActionListener, ItemListener treeCanvas.repaint(); + av.setCurrentTree(tree); + } } -- 1.7.10.2