tuned;
authorwenzelm
Wed, 05 Aug 2015 20:02:44 +0200
changeset 60846 a7e3f11c19b7
parent 60845 c4cb46e3cdd1
child 60847 239d7714392b
tuned;
src/Tools/Graphview/tree_panel.scala
--- a/src/Tools/Graphview/tree_panel.scala	Wed Aug 05 16:22:56 2015 +0200
+++ b/src/Tools/Graphview/tree_panel.scala	Wed Aug 05 20:02:44 2015 +0200
@@ -152,12 +152,13 @@
   {
     val new_nodes = graphview.visible_graph.topological_order
     if (new_nodes != nodes) {
+      tree.clearSelection
+
       nodes = new_nodes
 
       root.removeAllChildren
       for (node <- nodes) root.add(new DefaultMutableTreeNode(node))
 
-      tree.clearSelection
       for (i <- 0 until tree.getRowCount) tree.expandRow(i)
       tree.revalidate()
     }