/* for backward compatibilty, default fill is same as pen */
color = late_nnstring(n, N_color, "");
if (!color[0]) {
+ if (ND_shape(n) == point_desc) {
+ color = "black";
+ }
#ifdef WITH_CODEGENS
- if (Output_lang == MIF) color = "black";
- else
+ else if (Output_lang == MIF) color = "black";
#endif
- color = DEFAULT_FILL;
+ else color = DEFAULT_FILL;
}
}
return color;
static void point_init(node_t * n)
{
textlabel_t *p;
- char* color;
if (!point_desc) {
shape_desc *ptr;
} else
ND_width(n) = ND_height(n) = DEF_POINT;
- color = late_nnstring(n, N_color, "");
- if (!color[0])
- agsafeset(n, "color", "black", "");
poly_init(n);
}