Browse Source

Ivan Shmakov: code simplification (trac https://trac.osgeo.org/grass/ticket/122)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@31403 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Neteler 17 years ago
parent
commit
439e8cba4d
1 changed files with 1 additions and 18 deletions
  1. 1 18
      general/g.region/main.c

+ 1 - 18
general/g.region/main.c

@@ -482,24 +482,7 @@ int main (int argc, char *argv[])
 			G_fatal_error (_("Unable to read header of 3D raster map <%s@%s>"),
 				       name, mapset);
 
-		window.proj = win.proj;
-		window.zone = win.zone;
-		window.north = win.north;
-		window.south = win.south;
-		window.east = win.east;
-		window.west = win.west;
-		window.top = win.top;
-		window.bottom = win.bottom;
-		window.rows = win.rows;
-		window.rows3 = win.rows;
-		window.cols = win.cols;
-		window.cols3 = win.cols;
-		window.depths = win.depths;
-		window.ns_res = win.ns_res;
-		window.ns_res3 = win.ns_res;
-		window.ew_res = win.ew_res;
-		window.ew_res3 = win.ew_res;
-		window.tb_res = win.tb_res;
+		G3d_regionToCellHead (&win, &window);
 	}
 
 	/* vect= */