[GRASS-SVN] r73883 - grass/trunk/display/d.title

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Dec 29 08:43:02 PST 2018


Author: hcho
Date: 2018-12-29 08:43:02 -0800 (Sat, 29 Dec 2018)
New Revision: 73883

Modified:
   grass/trunk/display/d.title/main.c
Log:
d.title: d.text won't create a temporary file when passed a file

Modified: grass/trunk/display/d.title/main.c
===================================================================
--- grass/trunk/display/d.title/main.c	2018-12-28 14:22:51 UTC (rev 73882)
+++ grass/trunk/display/d.title/main.c	2018-12-29 16:43:02 UTC (rev 73883)
@@ -130,9 +130,8 @@
 	char inarg[GPATH_MAX];
 	fclose(fp);
 	sprintf(inarg, "input=%s", tmpfile);
+	/* note this tmp file will remain so it can survive d.redraw */
 	G_spawn("d.text", "d.text", inarg, NULL);
-	unlink(tmpfile);
-	/* note a tmp file will remain, created by d.text so it can survive d.redraw */
     }
 
     exit(EXIT_SUCCESS);



More information about the grass-commit mailing list