Author: pwang
Date: 2009-12-15 16:38:31 -0800 (Tue, 15 Dec 2009)
New Revision: 18776

Modified:
   cytoscape/trunk/src/cytoscape/visual/ui/NestedNetworkMenuListener.java
Log:
Bug fix: Go to nested network should create a view if it does not exist.

Modified: cytoscape/trunk/src/cytoscape/visual/ui/NestedNetworkMenuListener.java
===================================================================
--- cytoscape/trunk/src/cytoscape/visual/ui/NestedNetworkMenuListener.java      
2009-12-16 00:35:27 UTC (rev 18775)
+++ cytoscape/trunk/src/cytoscape/visual/ui/NestedNetworkMenuListener.java      
2009-12-16 00:38:31 UTC (rev 18776)
@@ -137,7 +137,7 @@
                        CyNetwork nestedNetwork = (CyNetwork) 
this.nodeView.getNode().getNestedNetwork();
                        
                        CyNetworkView theView = 
Cytoscape.getNetworkView(nestedNetwork.getIdentifier());
-                       if (theView == null){
+                       if (theView == null || theView.getIdentifier() == null){
                                theView = 
Cytoscape.createNetworkView(nestedNetwork);
                        }
 

--

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