From: ellson Date: Tue, 5 Jul 2005 17:56:31 +0000 (+0000) Subject: fixes for crashes during webdot usage X-Git-Tag: LAST_LIBGRAPH~32^2~7475 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=79c32f36607d2fbacbe9de873ffe3c705892a2c7;p=graphviz fixes for crashes during webdot usage --- diff --git a/tclpkg/tcldot/tcldot.c b/tclpkg/tcldot/tcldot.c index af2eba0a0..ad0f52c87 100644 --- a/tclpkg/tcldot/tcldot.c +++ b/tclpkg/tcldot/tcldot.c @@ -1077,6 +1077,7 @@ static int graphcmd(ClientData clientData, Tcl_Interp * interp, (char *) 0); return TCL_ERROR; } + gvc->active_jobs = gvc->job; gvc->job->surface = (void *)(&tkgendata); gvc->job->external_surface = TRUE; @@ -1107,6 +1108,8 @@ static int graphcmd(ClientData clientData, Tcl_Interp * interp, (char *) 0); return TCL_ERROR; } + gvc->active_jobs = gvc->job; + if (! (hdl = tclhandleXlate(GDHandleTable, argv[2]))) { Tcl_AppendResult(interp, "GD Image not found.", (char *) NULL); return TCL_ERROR; @@ -1243,6 +1246,8 @@ static int graphcmd(ClientData clientData, Tcl_Interp * interp, "\". Use one of:", s, (char *)NULL); return TCL_ERROR; } + gvc->active_jobs = gvc->job; + /* populate new job struct with output language and output file data */ gvc->job->output_lang = gvrender_select(gvc->job, gvc->job->output_langname);