浏览代码

if in PERMANENT, also update WIND

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@49749 15284696-431f-4ddb-bdfa-cd5b030d7da7
Hamish Bowman 13 年之前
父节点
当前提交
4cc283d992
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      raster/r.in.gdal/main.c

+ 4 - 4
raster/r.in.gdal/main.c

@@ -141,10 +141,9 @@ int main(int argc, char *argv[])
 
 
     flag_e = G_define_flag();
     flag_e = G_define_flag();
     flag_e->key = 'e';
     flag_e->key = 'e';
-    flag_e->label = _("Extend location extents based on new dataset");
+    flag_e->label = _("Extend region extents based on new dataset");
     flag_e->description =
     flag_e->description =
-	_("Updates default region if in the PERMANENT mapset, "
-	  "in other mapsets the current region will be extended");
+	_("Also updates the default region if in the PERMANENT mapset);
 
 
     flag_f = G_define_flag();
     flag_f = G_define_flag();
     flag_f->key = 'f';
     flag_f->key = 'f';
@@ -631,7 +630,8 @@ int main(int argc, char *argv[])
 
 
 	if (strcmp(G_mapset(), "PERMANENT") == 0) {
 	if (strcmp(G_mapset(), "PERMANENT") == 0) {
 	    G__put_window(&cur_wind, "", "DEFAULT_WIND");
 	    G__put_window(&cur_wind, "", "DEFAULT_WIND");
-	    G_message(_("Default region for this location updated"));
+	    G_put_window(&cur_wind);
+	    G_message(_("Default and working regions for this location updated"));
 	}
 	}
 	else {
 	else {
 	    G_put_window(&cur_wind);
 	    G_put_window(&cur_wind);