fix unselectable tree leaf nodes when node mapping changes after aligmment update...
[jalview.git] / src / jalview / gui / TreePanel.java
index dc2b820..c22a8e7 100755 (executable)
@@ -128,18 +128,15 @@ public class TreePanel extends GTreePanel
             if(tree==null)
               System.out.println("tree is null");
             if(evt.getNewValue()==null)
-              System.out.println("new value is null");
+              System.out.println("new alignment sequences vector value is null");
 
             tree.UpdatePlaceHolders( (Vector) evt.getNewValue());
-
+            treeCanvas.nameHash.clear(); // reset the mapping between canvas rectangles and leafnodes
             repaint();
           }
         }
       });
 
-      this.av = av;
-
-
       TreeLoader tl = new TreeLoader(newTree);
       if (inputData!=null) {
         tl.odata=inputData;