/* FIXME - file output should be its own device */
while(active_job) {
- if (active_job->output_file != stdout
+ if (active_job->output_filename
+ && active_job->output_file != stdout
&& ! active_job->external_surface) {
fclose(active_job->output_file);
active_job->output_file = NULL;
+ active_job->output_filename = NULL;
}
- active_job->output_filename = NULL;
active_job = active_job->next_active;
}
}
if (Tcl_GetOpenFile (interp, argv[2], 1, 1, &outfp) != TCL_OK)
return TCL_ERROR;
gvc->job->output_file = (FILE *)outfp;
+ gvc->job->output_filename = NULL;
/* make sure that layout is done - unless canonical output */
if ((!GD_drawing(g) || argc > 4)