[GRASS-SVN] r53040 - grass/branches/releasebranch_6_4/raster/r.lake
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Sep 1 01:06:42 PDT 2012
Author: marisn
Date: 2012-09-01 01:06:41 -0700 (Sat, 01 Sep 2012)
New Revision: 53040
Modified:
grass/branches/releasebranch_6_4/raster/r.lake/main.c
Log:
G_gisinit should be the first thing to call. Prevents fail with wxgui.
Modified: grass/branches/releasebranch_6_4/raster/r.lake/main.c
===================================================================
--- grass/branches/releasebranch_6_4/raster/r.lake/main.c 2012-08-31 21:53:12 UTC (rev 53039)
+++ grass/branches/releasebranch_6_4/raster/r.lake/main.c 2012-09-01 08:06:41 UTC (rev 53040)
@@ -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.");
@@ -200,8 +202,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