[GRASS-SVN] r66058 - grass/trunk/raster/r.support

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Aug 29 09:25:06 PDT 2015


Author: huhabla
Date: 2015-08-29 09:25:06 -0700 (Sat, 29 Aug 2015)
New Revision: 66058

Modified:
   grass/trunk/raster/r.support/main.c
Log:
raster module r.support: Use the history to store the map title 


Modified: grass/trunk/raster/r.support/main.c
===================================================================
--- grass/trunk/raster/r.support/main.c	2015-08-29 07:37:11 UTC (rev 66057)
+++ grass/trunk/raster/r.support/main.c	2015-08-29 16:25:06 UTC (rev 66058)
@@ -154,8 +154,10 @@
 	strncpy(title, title_opt->answer, MAX_TITLE_LEN);
 	title[MAX_TITLE_LEN - 1] = '\0';	/* strncpy doesn't null terminate oversized input */
 	G_strip(title);
-	G_debug(3, "map title= [%s]  (%d chars)", title, strlen(title));
-	Rast_put_cell_title(raster->answer, title);
+	G_debug(3, "map title= [%s]  (%li chars)", title, strlen(title));
+	Rast_read_history(raster->answer, "", &hist);
+	Rast_set_history(&hist, HIST_TITLE, title);
+	Rast_write_history(raster->answer, &hist);
     }
 
     if (save_opt->answer) {



More information about the grass-commit mailing list