]> granicus.if.org Git - graphviz/commitdiff
don't close external surfaces (breaks tcldot)
authorellson <devnull@localhost>
Thu, 6 Jul 2006 16:57:12 +0000 (16:57 +0000)
committerellson <devnull@localhost>
Thu, 6 Jul 2006 16:57:12 +0000 (16:57 +0000)
lib/gvc/gvdevice.c

index 0f6ffc7d73427480cdb3f8d59f94930511f10528..a2e1274e2ee8886e0ec25d79dd9fa3eee75f67fa 100644 (file)
@@ -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;
        }