[GRASS-SVN] r34294 - grass/trunk/raster/r.terraflow

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Nov 14 12:09:58 EST 2008


Author: neteler
Date: 2008-11-14 12:09:58 -0500 (Fri, 14 Nov 2008)
New Revision: 34294

Modified:
   grass/trunk/raster/r.terraflow/main.cc
Log:
fix order

Modified: grass/trunk/raster/r.terraflow/main.cc
===================================================================
--- grass/trunk/raster/r.terraflow/main.cc	2008-11-14 17:09:21 UTC (rev 34293)
+++ grass/trunk/raster/r.terraflow/main.cc	2008-11-14 17:09:58 UTC (rev 34294)
@@ -459,12 +459,13 @@
   assert(region);
 
   parse_args(argc, argv);
-  check_args();
 
   /* get the current region and dimensions */  
   if (G_get_set_window(region) == -1) {
     G_fatal_error("r.terraflow: error getting current region");
   }
+  check_args();
+
   int nr = G_window_rows();
   int nc = G_window_cols();
   if ((nr > dimension_type_max) || (nc > dimension_type_max)) {



More information about the grass-commit mailing list