]> granicus.if.org Git - graphviz/commitdiff
only use external write discipline for writes to stdout, writes to named now work...
authorellson <devnull@localhost>
Sun, 18 Nov 2007 03:13:12 +0000 (03:13 +0000)
committerellson <devnull@localhost>
Sun, 18 Nov 2007 03:13:12 +0000 (03:13 +0000)
lib/gvc/gvdevice.c

index d28523be9ef6c75fcc0f95dd4999cd4bc751458e..bdc0ce797e6d2e02f1c2570b044a94e0e4739355 100644 (file)
@@ -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