From 963505651b2410dda2158a7ef5db9de28ce24223 Mon Sep 17 00:00:00 2001 From: ellson Date: Thu, 14 Apr 2005 03:41:16 +0000 Subject: [PATCH] generate errors message, instead of crashing, if layout not done because of unavable layout plugins. --- lib/common/emit.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/common/emit.c b/lib/common/emit.c index 9eeb9f0a5..cba1dda90 100644 --- a/lib/common/emit.c +++ b/lib/common/emit.c @@ -1562,6 +1562,11 @@ static void emit_job(GVC_t * gvc, graph_t * g) { gvrender_job_t *job = gvc->job; + if (!GD_drawing(g)) { + fprintf (stderr,"layout was not done\n"); + return; + } + #ifndef DISABLE_CODEGENS Output_file = job->output_file; Output_lang = job->output_lang; -- 2.40.0