Author: mes
Date: 2009-12-10 13:53:57 -0800 (Thu, 10 Dec 2009)
New Revision: 18718

Modified:
   cytoscape/trunk/src/cytoscape/visual/ui/ValueSelectDialog.java
Log:
fixed a bug where defaults were incorrect for edge types on cancel

Modified: cytoscape/trunk/src/cytoscape/visual/ui/ValueSelectDialog.java
===================================================================
--- cytoscape/trunk/src/cytoscape/visual/ui/ValueSelectDialog.java      
2009-12-10 21:26:05 UTC (rev 18717)
+++ cytoscape/trunk/src/cytoscape/visual/ui/ValueSelectDialog.java      
2009-12-10 21:53:57 UTC (rev 18718)
@@ -98,8 +98,13 @@
 
                setList();
                
-               // get original value and sete the selected item.
-               originalValue = 
Cytoscape.getVisualMappingManager().getVisualStyle().getNodeAppearanceCalculator().getDefaultAppearance().get(type);
+               // get original value and set the selected item.
+               if ( type.isNodeProp() )
+                       originalValue = 
Cytoscape.getVisualMappingManager().getVisualStyle().getNodeAppearanceCalculator().getDefaultAppearance().get(type);
+               else 
+                       originalValue = 
Cytoscape.getVisualMappingManager().getVisualStyle().getEdgeAppearanceCalculator().getDefaultAppearance().get(type);
+               
+               // what about global visual properties?
        }
 
        /**

--

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