Commit 0c3eb346 authored by Claes Sjofors's avatar Claes Sjofors

Java, read pwg fix for groups and fix for GrowText

parent 983e4c88
...@@ -269,10 +269,12 @@ public class GrowNode extends GlowArrayElem implements GlowColorNode { ...@@ -269,10 +269,12 @@ public class GrowNode extends GlowArrayElem implements GlowColorNode {
break; break;
case Glow.eSave_Node_nc: case Glow.eSave_Node_nc:
nc_name = token.nextToken(); nc_name = token.nextToken();
nc = (GlowNodeClass)cmn.ctx.get_nodeclass_from_name( nc_name); if ( type() != Glow.eObjectType_GrowGroup) {
nc_root = nc; nc = (GlowNodeClass)cmn.ctx.get_nodeclass_from_name( nc_name);
if ( nc == null) nc_root = nc;
System.out.println( "GlowNode : " + line + ", node class not found: " + nc_name); if ( nc == null)
System.out.println( "GlowNode : " + line + ", node class not found: " + nc_name);
}
break; break;
case Glow.eSave_Node_n_name: case Glow.eSave_Node_n_name:
if ( token.hasMoreTokens()) if ( token.hasMoreTokens())
......
...@@ -210,7 +210,7 @@ public class GrowText extends GlowArrayElem { ...@@ -210,7 +210,7 @@ public class GrowText extends GlowArrayElem {
public void draw(GlowTransform t, int highlight, int hot, Object node, Object colornode) { public void draw(GlowTransform t, int highlight, int hot, Object node, Object colornode) {
if ( cmn.nodraw != 0) if ( cmn.nodraw != 0 || text == null)
return; return;
int x1, y1, rx1, ry1; int x1, y1, rx1, ry1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment