return Tflag;
}
-void common_init_node(node_t * n)
+void common_init_node_opt(node_t * n, int shape_init_flag)
{
char *str;
ND_width(n) =
late_nnstring(n, N_fontname, DEFAULT_FONTNAME),
late_nnstring(n, N_fontcolor, DEFAULT_COLOR));
ND_showboxes(n) = late_int(n, N_showboxes, 0, 0);
- ND_shape(n)->fns->initfn(n);
+ if (shape_init_flag) ND_shape(n)->fns->initfn(n);
}
+void common_init_node(node_t * n)
+ { return common_init_node_opt(n,TRUE); }
+
struct fontinfo {
double fontsize;
char *fontname;
static void finishNode (node_t* n)
{
+#ifdef OLD_AND_UNIMPROVED
char* str = strdup_and_subst_obj(NODENAME_ESC, (void*)n);
ND_shape(n) = bind_shape("box", n);
ND_label(n) = make_label((void*)n, str, LT_NONE,
late_double(n, N_fontsize, DEFAULT_FONTSIZE, MIN_FONTSIZE),
late_nnstring(n, N_fontname, DEFAULT_FONTNAME),
late_nnstring(n, N_fontcolor, DEFAULT_COLOR));
+#endif
ND_shape(n)->fns->initfn(n);
}
r = walker(p);
EXPANDBB(rr,r);
}
+ rr.LL.x -= 2./72.;
+ rr.LL.y -= 2./72.;
+ rr.UR.x += 2./72.;
+ rr.UR.y += 2./72.;
GD_bb(tree->u.subg) = rr;
}
return rr;