From: amwaterhouse Date: Tue, 15 Feb 2005 11:19:59 +0000 (+0000) Subject: Fix bug when creating treepanel X-Git-Tag: Release_2_0~656 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=fd6b6b23d89a5e1ff155e7b7643ebddc72865e48;p=jalview.git Fix bug when creating treepanel --- 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);