Author: jm
Date: 2012-04-26 11:14:34 -0700 (Thu, 26 Apr 2012)
New Revision: 29016
Modified:
core3/impl/trunk/ding-impl/ding-presentation-impl/src/main/java/org/cytoscape/ding/impl/DGraphView.java
Log:
Fixes #909: Hiding a hidden node no longer clobbers its position or size when
it is unhidden.
Modified:
core3/impl/trunk/ding-impl/ding-presentation-impl/src/main/java/org/cytoscape/ding/impl/DGraphView.java
===================================================================
---
core3/impl/trunk/ding-impl/ding-presentation-impl/src/main/java/org/cytoscape/ding/impl/DGraphView.java
2012-04-26 18:02:31 UTC (rev 29015)
+++
core3/impl/trunk/ding-impl/ding-presentation-impl/src/main/java/org/cytoscape/ding/impl/DGraphView.java
2012-04-26 18:14:34 UTC (rev 29016)
@@ -1366,6 +1366,12 @@
final DNodeView nView = (DNodeView) obj;
nodeInx = nView.getGraphPerspectiveIndex();
nnode = model.getNode(nodeInx);
+
+ // If the node is already hidden, don't do
anything.
+ if (m_drawPersp.getNode(nodeInx) == null) {
+ return false;
+ }
+
edges = m_drawPersp.getAdjacentEdgeList(nnode,
CyEdge.Type.ANY);
if (edges != null) {
--
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.