From fd6b6b23d89a5e1ff155e7b7643ebddc72865e48 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Tue, 15 Feb 2005 11:19:59 +0000 Subject: [PATCH] Fix bug when creating treepanel --- src/jalview/gui/AlignFrame.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/jalview/gui/AlignFrame.java b/src/jalview/gui/AlignFrame.java index 686ecbc..701c209 100755 --- a/src/jalview/gui/AlignFrame.java +++ b/src/jalview/gui/AlignFrame.java @@ -961,13 +961,12 @@ if ( viewport.getConservationSelected() ) if (viewport.getSelection() != null && viewport.getSelection().size() > 3) { tp = new TreePanel(viewport, viewport.getSelection().asVector(),type, pwType, - viewport.getStartRes(), viewport.getEndRes()); + 0, viewport.alignment.getWidth()); } else { tp = new TreePanel(viewport, viewport.getAlignment().getSequences(), - type, pwType, viewport.getStartRes(), - viewport.getEndRes()); + type, pwType, 0, viewport.alignment.getWidth()); } frame.setContentPane(tp); -- 1.7.10.2