Fix bug when creating treepanel
authoramwaterhouse <Andrew Waterhouse>
Tue, 15 Feb 2005 11:19:59 +0000 (11:19 +0000)
committeramwaterhouse <Andrew Waterhouse>
Tue, 15 Feb 2005 11:19:59 +0000 (11:19 +0000)
src/jalview/gui/AlignFrame.java

index 686ecbc..701c209 100755 (executable)
@@ -961,13 +961,12 @@ if ( viewport.getConservationSelected() )
    if (viewport.getSelection() != null && viewport.getSelection().size() > 3)\r
    {\r
      tp = new TreePanel(viewport, viewport.getSelection().asVector(),type, pwType,\r
-                         viewport.getStartRes(), viewport.getEndRes());\r
+                         0, viewport.alignment.getWidth());\r
    }\r
    else\r
    {\r
      tp = new TreePanel(viewport, viewport.getAlignment().getSequences(),\r
-                         type, pwType, viewport.getStartRes(),\r
-                         viewport.getEndRes());\r
+                         type, pwType,  0, viewport.alignment.getWidth());\r
    }\r
 \r
    frame.setContentPane(tp);\r