git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
83f6c63
)
better support for TreeNode binding
author
jprocter
<Jim Procter>
Fri, 28 Sep 2007 11:20:54 +0000
(11:20 +0000)
committer
jprocter
<Jim Procter>
Fri, 28 Sep 2007 11:20:54 +0000
(11:20 +0000)
src/jalview/io/vamsas/Tree.java
patch
|
blob
|
history
diff --git
a/src/jalview/io/vamsas/Tree.java
b/src/jalview/io/vamsas/Tree.java
index
8ff825c
..
28e3c2d
100644
(file)
--- a/
src/jalview/io/vamsas/Tree.java
+++ b/
src/jalview/io/vamsas/Tree.java
@@
-231,7
+231,7
@@
public class Tree extends DatastoreItem
*/
public void UpdateSequenceTreeMap(TreePanel tp)
{
*/
public void UpdateSequenceTreeMap(TreePanel tp)
{
- if (tp == null || tree != null)
+ if (tp == null || tree == null)
return;
Vector leaves = new Vector();
tp.getTree().findLeaves(tp.getTree().getTopNode(), leaves);
return;
Vector leaves = new Vector();
tp.getTree().findLeaves(tp.getTree().getTopNode(), leaves);
@@
-246,7
+246,7
@@
public class Tree extends DatastoreItem
BinaryNode mappednode = findNodeSpec(node.getNodespec(), leaves);
if (mappednode != null && mappednode instanceof SequenceNode)
{
BinaryNode mappednode = findNodeSpec(node.getNodespec(), leaves);
if (mappednode != null && mappednode instanceof SequenceNode)
{
- SequenceNode leaf = (SequenceNode) leaves.elementAt(i++);
+ SequenceNode leaf = (SequenceNode) mappednode;
// check if we can make the specified association
Object jvseq = null;
int vrf = 0, refv = 0;
// check if we can make the specified association
Object jvseq = null;
int vrf = 0, refv = 0;