[GRASS-SVN] r70407 - grass/branches/releasebranch_7_2/vector/v.db.select

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Jan 21 13:20:06 PST 2017


Author: mmetz
Date: 2017-01-21 13:20:06 -0800 (Sat, 21 Jan 2017)
New Revision: 70407

Modified:
   grass/branches/releasebranch_7_2/vector/v.db.select/main.c
Log:
v.db.select: fix #3236 (backport from trunk r70406)

Modified: grass/branches/releasebranch_7_2/vector/v.db.select/main.c
===================================================================
--- grass/branches/releasebranch_7_2/vector/v.db.select/main.c	2017-01-21 21:19:05 UTC (rev 70406)
+++ grass/branches/releasebranch_7_2/vector/v.db.select/main.c	2017-01-21 21:20:06 UTC (rev 70407)
@@ -247,7 +247,7 @@
 		continue;
 
 	    if (f_flag->answer) {
-		Vect_cidx_find_all(&Map, field_number, -1, cat, list_lines);
+		Vect_cidx_find_all(&Map, field_number, ~GV_AREA, cat, list_lines);
 		/* if no features are found for this category, don't print
 		 * anything. */
 		if (list_lines->n_values == 0)
@@ -276,7 +276,7 @@
 
 	if (r_flag->answer) {
 	    /* get minimal region extent */
-	    Vect_cidx_find_all(&Map, field_number, -1, cat, list_lines);
+	    Vect_cidx_find_all(&Map, field_number, ~GV_AREA, cat, list_lines);
 	    for (i = 0; i < list_lines->n_values; i++) {
 		line = list_lines->value[i];
 		if (Vect_get_line_type(&Map, line) == GV_CENTROID) {



More information about the grass-commit mailing list