Author: clopes
Date: 2011-12-06 11:26:12 -0800 (Tue, 06 Dec 2011)
New Revision: 27708
Modified:
core3/impl/trunk/ding-impl/ding-presentation-impl/src/main/java/org/cytoscape/ding/impl/DGraphView.java
Log:
Fixed bug that prevented the network view from returning previously set visual
property values, because it would always return the default values instead.
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
2011-12-06 19:21:17 UTC (rev 27707)
+++
core3/impl/trunk/ding-impl/ding-presentation-impl/src/main/java/org/cytoscape/ding/impl/DGraphView.java
2011-12-06 19:26:12 UTC (rev 27708)
@@ -2946,13 +2946,12 @@
value = getCenter().getY();
} else if (vp == MinimalVisualLexicon.NETWORK_SCALE_FACTOR) {
value = getZoom();
- } else if (vp == MinimalVisualLexicon.NETWORK_WIDTH || vp ==
MinimalVisualLexicon.NETWORK_HEIGHT) {
+ } else {
value = visualProperties.get(vp);
if (value == null)
value = vp.getDefault();
- } else
- value = vp.getDefault();
+ }
return (T) value;
}
--
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.