Don't do gr_redraw twice (for non-X11 is already

done in gr_resize)
Add a function DevFinalize() to add the closings in SVG or PS
files ("/> or "stroke"), when files are generated by the
plot window in MS Windows.
This commit is contained in:
Holger Vogt 2021-06-11 18:42:26 +02:00
parent a6079781ea
commit 5e8ae680db
1 changed files with 2 additions and 1 deletions

View File

@ -128,7 +128,8 @@ void com_hardcopy(wordlist *wl)
return;
}
gr_resize(tempgraph);
gr_redraw(tempgraph);
/* use DevClear to add final statement in file, "/> or "stroke"*/
DevFinalize();
DestroyGraph(tempgraph->graphid);
DevSwitch(NULL);
foundit = 1;