Author: kono
Date: 2011-11-17 16:15:27 -0800 (Thu, 17 Nov 2011)
New Revision: 27521

Modified:
   
core3/impl/trunk/swing-application-impl/src/main/java/org/cytoscape/internal/view/NetworkPanel.java
Log:
Minor updates only.

Modified: 
core3/impl/trunk/swing-application-impl/src/main/java/org/cytoscape/internal/view/NetworkPanel.java
===================================================================
--- 
core3/impl/trunk/swing-application-impl/src/main/java/org/cytoscape/internal/view/NetworkPanel.java
 2011-11-18 00:11:59 UTC (rev 27520)
+++ 
core3/impl/trunk/swing-application-impl/src/main/java/org/cytoscape/internal/view/NetworkPanel.java
 2011-11-18 00:15:27 UTC (rev 27521)
@@ -314,13 +314,13 @@
                final NetworkTreeNode parentNode = (NetworkTreeNode) 
node.getParent();
                node.removeFromParent();
 
-               if(parentNode.getChildCount() == 0) {
+               if(parentNode.isLeaf()) {
                        // Remove from root node
                        parentNode.removeFromParent();
                }
                
+               treeTable.getTree().updateUI();
                treeTable.doLayout();
-               treeTable.getTree().updateUI();
        }
 
        /**

-- 
You received this message because you are subscribed to the Google Groups 
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/cytoscape-cvs?hl=en.

Reply via email to