Rev 17755 | Rev 18133 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 17755 | Rev 17916 | ||
---|---|---|---|
Line 135... | Line 135... | ||
135 | vartab[0].name="animstep"; vartab[0].value=0; |
135 | vartab[0].name="animstep"; vartab[0].value=0; |
136 | varcnt=1; |
136 | varcnt=1; |
137 | if(argc>1) snprintf(imagefilename,sizeof(imagefilename),"%s",argv[1]); |
137 | if(argc>1) snprintf(imagefilename,sizeof(imagefilename),"%s",argv[1]); |
138 | else imagefilename[0]=0; |
138 | else imagefilename[0]=0; |
139 | fly_process(); |
139 | fly_process(); |
140 | if(!saved || imagefilename[0]!=0) output(); |
- | |
141 | if(tikz_file){ |
140 | if(tikz_file){ |
142 | fprintf(tikz_file,"\\end{tikzpicture}\n"); |
141 | fprintf(tikz_file,"\\end{tikzpicture}\n"); |
143 | fclose(tikz_file); |
142 | fclose(tikz_file); |
144 | } |
143 | } |
- | 144 | else |
|
- | 145 | if(!saved || imagefilename[0]!=0) output(); |
|
145 | if(image) gdImageDestroy(image); |
146 | if(image) gdImageDestroy(image); |
146 | if(vimg_ready) vimg_close(); |
147 | if(vimg_ready) vimg_close(); |
147 | return 0; |
148 | return 0; |
148 | } |
149 | } |