Author: scooter
Date: 2010-02-01 20:13:52 -0800 (Mon, 01 Feb 2010)
New Revision: 19112

Modified:
   cytoscape/trunk/src/cytoscape/visual/VisualStyle.java
Log:
Copy (or initialize) the dependencies in the copy constructor


Modified: cytoscape/trunk/src/cytoscape/visual/VisualStyle.java
===================================================================
--- cytoscape/trunk/src/cytoscape/visual/VisualStyle.java       2010-02-02 
01:09:02 UTC (rev 19111)
+++ cytoscape/trunk/src/cytoscape/visual/VisualStyle.java       2010-02-02 
04:13:52 UTC (rev 19112)
@@ -176,6 +176,10 @@
                
                if (newName == null)
                        throw new NullPointerException("Unexpected null name in 
VisualStyle constructor");
+
+               deps = toCopy.getDependency();
+               if (deps == null)
+                       deps = new VisualPropertyDependencyImpl();
                
                setName(newName);
                
setNodeAppearanceCalculator((NodeAppearanceCalculator)toCopy.getNodeAppearanceCalculator().clone());

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