Author: ruschein
Date: 2010-11-29 12:32:16 -0800 (Mon, 29 Nov 2010)
New Revision: 23038
Modified:
core3/layout-api/trunk/src/main/java/org/cytoscape/view/layout/LayoutTask.java
Log:
Fixed a trivial bug.
Modified:
core3/layout-api/trunk/src/main/java/org/cytoscape/view/layout/LayoutTask.java
===================================================================
---
core3/layout-api/trunk/src/main/java/org/cytoscape/view/layout/LayoutTask.java
2010-11-29 18:57:15 UTC (rev 23037)
+++
core3/layout-api/trunk/src/main/java/org/cytoscape/view/layout/LayoutTask.java
2010-11-29 20:32:16 UTC (rev 23038)
@@ -6,6 +6,7 @@
import org.cytoscape.model.CyNetwork;
import org.cytoscape.model.CyNode;
import org.cytoscape.model.CyRow;
+import org.cytoscape.model.CyTable;
import org.cytoscape.view.model.CyNetworkView;
import org.cytoscape.view.model.View;
@@ -62,7 +63,9 @@
// update the __layoutAlgorithm attribute
final CyRow networkAttributes =
network.getCyRow(CyNetwork.HIDDEN_ATTRS);
- networkAttributes.getDataTable().createColumn(LAYOUT_ALGORITHM,
String.class);
+ final CyTable netAttrsTable = networkAttributes.getDataTable();
+ if (netAttrsTable.getColumnTypeMap().get(LAYOUT_ALGORITHM) ==
null)
+ netAttrsTable.createColumn(LAYOUT_ALGORITHM,
String.class);
networkAttributes.set(LAYOUT_ALGORITHM, name);
logger.debug("Layout finished: " +
(System.currentTimeMillis()-start) + " msec.");
--
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.