From: ellson Date: Thu, 6 Jul 2006 16:57:12 +0000 (+0000) Subject: don't close external surfaces (breaks tcldot) X-Git-Tag: LAST_LIBGRAPH~32^2~6184 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=800745167af190a599142b132e0bb1e2224b43fb;p=graphviz don't close external surfaces (breaks tcldot) --- diff --git a/lib/gvc/gvdevice.c b/lib/gvc/gvdevice.c index 0f6ffc7d7..a2e1274e2 100644 --- a/lib/gvc/gvdevice.c +++ b/lib/gvc/gvdevice.c @@ -98,7 +98,8 @@ void gvdevice_finalize(GVC_t * gvc) /* FIXME - file output should be its own device */ while(active_job) { - if (active_job->output_file != stdout) { + if (active_job->output_file != stdout + && ! active_job->external_surface) { fclose(active_job->output_file); active_job->output_file = NULL; }