Author: scooter
Date: 2012-09-24 18:33:23 -0700 (Mon, 24 Sep 2012)
New Revision: 30471

Modified:
   
core3/impl/trunk/ding-impl/ding-presentation-impl/src/main/java/org/cytoscape/ding/impl/DNodeView.java
Log:
Fix error in transformation handling of custom graphics


Modified: 
core3/impl/trunk/ding-impl/ding-presentation-impl/src/main/java/org/cytoscape/ding/impl/DNodeView.java
===================================================================
--- 
core3/impl/trunk/ding-impl/ding-presentation-impl/src/main/java/org/cytoscape/ding/impl/DNodeView.java
      2012-09-24 21:56:50 UTC (rev 30470)
+++ 
core3/impl/trunk/ding-impl/ding-presentation-impl/src/main/java/org/cytoscape/ding/impl/DNodeView.java
      2012-09-25 01:33:23 UTC (rev 30471)
@@ -1239,7 +1239,7 @@
                final float fit = graphics.getFitRatio();
 
                // Case 1: if custom graphic is a vector fit width and length
-               if (graphics instanceof PaintedShape) {
+               if (cg instanceof PaintedShape) {
                        scale = AffineTransform.getScaleInstance(fit * width / 
cgW, fit * height / cgH);
                } else {
                        // Case 2: node height value is larger than width

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