Author: paperwing
Date: 2012-02-08 15:29:58 -0800 (Wed, 08 Feb 2012)
New Revision: 28216
Modified:
csplugins/trunk/toronto/yuedong/paperwing-impl/src/main/java/org/cytoscape/paperwing/internal/rendering/RenderNodeLabelsProcedure.java
Log:
Using a new JOGL TextRenderer instance every drawing frame instead of re-using
a previously declared TextRenderer object seems to solve the issue of crashing
when clicking on the visual style preview image to bring up the visual style
editor dialog.
Modified:
csplugins/trunk/toronto/yuedong/paperwing-impl/src/main/java/org/cytoscape/paperwing/internal/rendering/RenderNodeLabelsProcedure.java
===================================================================
---
csplugins/trunk/toronto/yuedong/paperwing-impl/src/main/java/org/cytoscape/paperwing/internal/rendering/RenderNodeLabelsProcedure.java
2012-02-08 23:27:21 UTC (rev 28215)
+++
csplugins/trunk/toronto/yuedong/paperwing-impl/src/main/java/org/cytoscape/paperwing/internal/rendering/RenderNodeLabelsProcedure.java
2012-02-08 23:29:58 UTC (rev 28216)
@@ -33,7 +33,6 @@
private Font defaultFont = new Font("SansSerif", Font.PLAIN,
TEXT_FONT_SIZE);
public RenderNodeLabelsProcedure() {
- textRenderer = new TextRenderer(defaultFont);
}
@Override
@@ -47,6 +46,8 @@
@Override
public void execute(GraphicsData graphicsData) {
GL2 gl = graphicsData.getGlContext();
+
+ textRenderer = new TextRenderer(defaultFont);
CyNetworkView networkView = graphicsData.getNetworkView();
float distanceScale = graphicsData.getDistanceScale();
--
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.