]> granicus.if.org Git - graphviz/commitdiff
Fix bug affecting old codegens. Need to make sure Output_file is
authorerg <devnull@localhost>
Tue, 20 Mar 2007 21:00:53 +0000 (21:00 +0000)
committererg <devnull@localhost>
Tue, 20 Mar 2007 21:00:53 +0000 (21:00 +0000)
initialized before calling begin_job. The removes an assignment
of Output_file from mpgen which was used to solve the same problem.
Here we are solving it for all of the codegens.

lib/common/emit.c

index df4c177d89a0e94daa6f2b71b1b2dc2ec549db3a..d26924660ad76db5802cd376842ae4e41cae22af 100644 (file)
@@ -2709,11 +2709,11 @@ int gvRenderJobs (GVC_t * gvc, graph_t * g)
                 job->output_file = file_select(job->output_filename);
             else
                 job->output_file = stdout;
-           gvrender_begin_job(job); /* FIXME? - semantics are unclear */
-        }
 #ifdef WITH_CODEGENS
-       Output_file = job->output_file;
+           Output_file = job->output_file;
 #endif
+           gvrender_begin_job(job); /* FIXME? - semantics are unclear */
+        }
 
        if (! (job->flags & GVRENDER_X11_EVENTS)) {
                /* Show_boxes is not defined, if at all,