Browse Source

g.rename: Rename child reclass maps properly

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@64132 15284696-431f-4ddb-bdfa-cd5b030d7da7
Huidae Cho 10 years ago
parent
commit
af9e75aa16
1 changed files with 1 additions and 1 deletions
  1. 1 1
      general/g.rename/main.c

+ 1 - 1
general/g.rename/main.c

@@ -94,7 +94,7 @@ int main(int argc, char *argv[])
 	    }
 
 	    if (!renamed && strcmp(parm[n]->key, "raster") == 0 &&
-		Rast_is_reclassed_to(old, mapset, &nrmaps, &rmaps) > 0) {
+		Rast_is_reclassed_to(new, mapset, &nrmaps, &rmaps) > 0) {
 		int ptr, l;
 		char buf1[256], buf2[256], buf3[256], *str;
 		FILE *fp;