}
job->output_lang = gvrender_select(job, job->output_langname);
- if (!GD_drawing(g) && !(job->flags & LAYOUT_NOT_REQUIRED)) {
- fprintf(stderr, "Layout was not done\n");
+ if (!LAYOUT_DONE(g) && !(job->flags & LAYOUT_NOT_REQUIRED)) {
+ agerrorf( "Layout was not done\n");
return -1;
}
job->output_file = out;
}
job->output_lang = gvrender_select(job, job->output_langname);
- if (!GD_drawing(g) && !(job->flags & LAYOUT_NOT_REQUIRED)) {
- fprintf(stderr, "Layout was not done\n");
+ if (!LAYOUT_DONE(g) && !(job->flags & LAYOUT_NOT_REQUIRED)) {
+ agerrorf( "Layout was not done\n");
return -1;
}
gvjobs_output_filename(gvc, filename);
}
job->output_lang = gvrender_select(job, job->output_langname);
- if (!GD_drawing(g) && !(job->flags & LAYOUT_NOT_REQUIRED)) {
- fprintf(stderr, "Layout was not done\n");
+ if (!LAYOUT_DONE(g) && !(job->flags & LAYOUT_NOT_REQUIRED)) {
+ agerrorf( "Layout was not done\n");
return -1;
}
}
job->output_lang = gvrender_select(job, job->output_langname);
- if (!GD_drawing(g) && !(job->flags & LAYOUT_NOT_REQUIRED)) {
- fprintf(stderr, "Layout was not done\n");
+ if (!LAYOUT_DONE(g) && !(job->flags & LAYOUT_NOT_REQUIRED)) {
+ agerrorf( "Layout was not done\n");
return -1;
}
#endif
/*end visual studio*/
+#define LAYOUT_DONE(g) (agbindrec(g, "Agraphinfo_t", 0, TRUE) && GD_drawing(g))
+
/* misc */
/* FIXME - this needs eliminating or renaming */
extern void gvToggle(int);