瀏覽代碼

r.tile: fix title output

git-svn-id: https://svn.osgeo.org/grass/grass/branches/releasebranch_7_0@60987 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Neteler 11 年之前
父節點
當前提交
3665531c1c
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      raster/r.tile/main.c

+ 2 - 1
raster/r.tile/main.c

@@ -179,8 +179,9 @@ static void write_support_files(int xtile, int ytile, int overlap)
     Rast_write_cats(name, &cats);
 
     /* record map metadata/history info */
+    G_debug(1, "Tile %d,%d of %s: writing %s", xtile, ytile, parm.rastin->answer, name);
     sprintf(title, "Tile %d,%d of %s", xtile, ytile, parm.rastin->answer);
-    Rast_put_cell_title(parm.rastout->answer, title);
+    Rast_put_cell_title(name, title);
 
     Rast_short_history(name, "raster", &history);
     Rast_set_history(&history, HIST_DATSRC_1, parm.rastin->answer);