[GRASS-SVN] r51158 - sandbox/martinl/v.test
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Mar 23 17:16:11 EDT 2012
Author: martinl
Date: 2012-03-23 14:16:11 -0700 (Fri, 23 Mar 2012)
New Revision: 51158
Modified:
sandbox/martinl/v.test/main.c
Log:
v.test: don't set field contraint when -1
Modified: sandbox/martinl/v.test/main.c
===================================================================
--- sandbox/martinl/v.test/main.c 2012-03-23 21:06:34 UTC (rev 51157)
+++ sandbox/martinl/v.test/main.c 2012-03-23 21:16:11 UTC (rev 51158)
@@ -116,9 +116,10 @@
}
/* constraint by field */
- Vect_set_constraint_field(&Map,
- Vect_get_field_number(&Map, opt.field->answer));
-
+ if (opt.field->answer && strcmp(opt.field->answer, "-1") != 0)
+ Vect_set_constraint_field(&Map,
+ Vect_get_field_number(&Map, opt.field->answer));
+
/* constraint by region */
if (flag.r->answer) {
struct Cell_head window;
More information about the grass-commit
mailing list