[GRASS-SVN] r72672 - grass/trunk/vector/v.extract
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri May 4 10:18:05 PDT 2018
Author: mmetz
Date: 2018-05-04 10:18:05 -0700 (Fri, 04 May 2018)
New Revision: 72672
Modified:
grass/trunk/vector/v.extract/main.c
Log:
v.extract: change layer option to G_OPT_V_FIELD_ALL, keep default answer 1
Modified: grass/trunk/vector/v.extract/main.c
===================================================================
--- grass/trunk/vector/v.extract/main.c 2018-05-04 17:14:59 UTC (rev 72671)
+++ grass/trunk/vector/v.extract/main.c 2018-05-04 17:18:05 UTC (rev 72672)
@@ -100,7 +100,8 @@
opt.input = G_define_standard_option(G_OPT_V_INPUT);
- opt.field = G_define_standard_option(G_OPT_V_FIELD);
+ opt.field = G_define_standard_option(G_OPT_V_FIELD_ALL);
+ opt.field->answer = "1";
opt.field->guisection = _("Selection");
opt.type = G_define_standard_option(G_OPT_V_TYPE);
@@ -204,7 +205,7 @@
((type & GV_AREA) || ((type & GV_CENTROID) && (type & GV_BOUNDARY)))) {
dissolve = TRUE;
if (field > 0 && opt.d_key->answer) {
- int i, ncols, ret;
+ int ncols, ret;
dbTable *Table;
dbColumn *Col;
dbString tabname;
More information about the grass-commit
mailing list