Author: jm
Date: 2012-05-14 09:02:22 -0700 (Mon, 14 May 2012)
New Revision: 29257

Modified:
   
core3/impl/trunk/io-impl/impl/src/main/java/org/cytoscape/io/internal/write/xgmml/XGMMLWriter.java
Log:
Fixes #968: Base network only gets serialized if it hasn't been deleted.

Modified: 
core3/impl/trunk/io-impl/impl/src/main/java/org/cytoscape/io/internal/write/xgmml/XGMMLWriter.java
===================================================================
--- 
core3/impl/trunk/io-impl/impl/src/main/java/org/cytoscape/io/internal/write/xgmml/XGMMLWriter.java
  2012-05-14 15:03:53 UTC (rev 29256)
+++ 
core3/impl/trunk/io-impl/impl/src/main/java/org/cytoscape/io/internal/write/xgmml/XGMMLWriter.java
  2012-05-14 16:02:22 UTC (rev 29257)
@@ -1015,7 +1015,10 @@
                List<CySubNetwork> subNetList = rootNet.getSubNetworkList();
                Set<CySubNetwork> registeredSubNetSet = new 
LinkedHashSet<CySubNetwork>();
                
-               registeredSubNetSet.add(rootNet.getBaseNetwork()); // The base 
network must be the first one!
+               CySubNetwork baseNetwork = rootNet.getBaseNetwork();
+               if (isRegistered(baseNetwork)) {
+                       registeredSubNetSet.add(baseNetwork); // The base 
network must be the first one!
+               }
                
                for (CySubNetwork sn : subNetList) {
                        if (isRegistered(sn))

-- 
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