From: ellson Date: Sun, 18 Nov 2007 03:13:12 +0000 (+0000) Subject: only use external write discipline for writes to stdout, writes to named now work... X-Git-Tag: LAST_LIBGRAPH~32^2~5005 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6adebd571b58c111ce42b69c580535c6a67ac758;p=graphviz only use external write discipline for writes to stdout, writes to named now work normally --- diff --git a/lib/gvc/gvdevice.c b/lib/gvc/gvdevice.c index d28523be9..bdc0ce797 100644 --- a/lib/gvc/gvdevice.c +++ b/lib/gvc/gvdevice.c @@ -79,7 +79,7 @@ void gvdevice_printf(GVJ_t * job, const char *format, ...) size_t gvdevice_write (GVJ_t * job, const unsigned char *s, unsigned int len) { - if (job->gvc->write_fn) /* externally provided write dicipline */ + if (job->gvc->write_fn && job->output_file == stdout) /* externally provided write dicipline */ return (job->gvc->write_fn)(s, len); if (job->flags & GVDEVICE_COMPRESSED_FORMAT) { #ifdef HAVE_LIBZ