Procházet zdrojové kódy

d.title: d.text won't create a temporary file when passed a file

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@73883 15284696-431f-4ddb-bdfa-cd5b030d7da7
Huidae Cho před 6 roky
rodič
revize
2cb74c1731
1 změnil soubory, kde provedl 1 přidání a 2 odebrání
  1. 1 2
      display/d.title/main.c

+ 1 - 2
display/d.title/main.c

@@ -130,9 +130,8 @@ int main(int argc, char **argv)
 	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);