From 5e8ae680db7c58562b7f97e0db024ac593ac15d4 Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Fri, 11 Jun 2021 18:42:26 +0200 Subject: [PATCH] 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. --- src/frontend/com_hardcopy.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/frontend/com_hardcopy.c b/src/frontend/com_hardcopy.c index 16a5cbee3..56e99348c 100644 --- a/src/frontend/com_hardcopy.c +++ b/src/frontend/com_hardcopy.c @@ -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;