[GRASS-SVN] r53043 - grass/branches/develbranch_6/raster/r.lake

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Sep 1 01:34:57 PDT 2012


Author: marisn
Date: 2012-09-01 01:34:57 -0700 (Sat, 01 Sep 2012)
New Revision: 53043

Modified:
   grass/branches/develbranch_6/raster/r.lake/main.c
Log:
G_gisinit should be the first thing to call. Prevents fail with wxgui.

Modified: grass/branches/develbranch_6/raster/r.lake/main.c
===================================================================
--- grass/branches/develbranch_6/raster/r.lake/main.c	2012-09-01 08:17:23 UTC (rev 53042)
+++ grass/branches/develbranch_6/raster/r.lake/main.c	2012-09-01 08:34:57 UTC (rev 53043)
@@ -144,6 +144,8 @@
     struct Cell_head window;
     struct History history;
 
+    G_gisinit(argv[0]);
+    
     module = G_define_module();
     module->keywords = _("raster, hydrology");
     module->description = _("Fills lake at given point to given level.");
@@ -188,8 +190,6 @@
     if (G_parser(argc, argv))	/* Returns 0 if successful, non-zero otherwise */
 	exit(EXIT_FAILURE);
 
-    G_gisinit(argv[0]);
-
     if (smap_opt->answer && sdxy_opt->answer)
 	G_fatal_error(_("Both seed map and coordinates cannot be specified"));
 



More information about the grass-commit mailing list