Author: scooter
Date: 2011-06-14 15:36:26 -0700 (Tue, 14 Jun 2011)
New Revision: 25756

Modified:
   
cytoscape/trunk/corelibs/render.immed/src/main/java/cytoscape/render/immed/GraphGraphics.java
Log:
Catch case where the font size is 0


Modified: 
cytoscape/trunk/corelibs/render.immed/src/main/java/cytoscape/render/immed/GraphGraphics.java
===================================================================
--- 
cytoscape/trunk/corelibs/render.immed/src/main/java/cytoscape/render/immed/GraphGraphics.java
       2011-06-14 21:06:31 UTC (rev 25755)
+++ 
cytoscape/trunk/corelibs/render.immed/src/main/java/cytoscape/render/immed/GraphGraphics.java
       2011-06-14 22:36:26 UTC (rev 25756)
@@ -1932,6 +1932,7 @@
        public final void drawTextFull(final Font font, final double 
scaleFactor,
                        final String text, final float xCenter, final float 
yCenter,
                        final float theta, final Paint paint, final boolean 
drawTextAsShape) {
+               if (font.getSize() == 0) return;
                if (m_debug) {
                        checkDispatchThread();
                        checkCleared();

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