[GRASS-SVN] r52900 - grass/branches/releasebranch_6_4/raster/r.recode
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Aug 25 06:30:53 PDT 2012
Author: mmetz
Date: 2012-08-25 06:30:52 -0700 (Sat, 25 Aug 2012)
New Revision: 52900
Modified:
grass/branches/releasebranch_6_4/raster/r.recode/main.c
grass/branches/releasebranch_6_4/raster/r.recode/recode.c
Log:
r.recode: use title option, + G_command_history()
Modified: grass/branches/releasebranch_6_4/raster/r.recode/main.c
===================================================================
--- grass/branches/releasebranch_6_4/raster/r.recode/main.c 2012-08-25 13:26:31 UTC (rev 52899)
+++ grass/branches/releasebranch_6_4/raster/r.recode/main.c 2012-08-25 13:30:52 UTC (rev 52900)
@@ -106,6 +106,9 @@
do_recode();
+ if(title)
+ G_put_cell_title(result, title);
+
G_done_msg(_("Raster map <%s> created."),
result);
Modified: grass/branches/releasebranch_6_4/raster/r.recode/recode.c
===================================================================
--- grass/branches/releasebranch_6_4/raster/r.recode/recode.c 2012-08-25 13:26:31 UTC (rev 52899)
+++ grass/branches/releasebranch_6_4/raster/r.recode/recode.c 2012-08-25 13:30:52 UTC (rev 52900)
@@ -75,6 +75,8 @@
else
hist.edlinecnt = nrules + 1;
sprintf(hist.datsrc_1, "raster map %s", name);
+
+ G_command_history(&hist);
G_write_history(result, &hist);
return 0;
More information about the grass-commit
mailing list