[GRASS-SVN] r72496 - grass/branches/releasebranch_7_2/vector/v.random
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Mar 22 08:29:23 PDT 2018
Author: martinl
Date: 2018-03-22 08:29:23 -0700 (Thu, 22 Mar 2018)
New Revision: 72496
Modified:
grass/branches/releasebranch_7_2/vector/v.random/main.c
Log:
v.random restrict wrong categories assigned, see #3524 (merge r72416 + r72421 from trunk)
Modified: grass/branches/releasebranch_7_2/vector/v.random/main.c
===================================================================
--- grass/branches/releasebranch_7_2/vector/v.random/main.c 2018-03-22 15:26:33 UTC (rev 72495)
+++ grass/branches/releasebranch_7_2/vector/v.random/main.c 2018-03-22 15:29:23 UTC (rev 72496)
@@ -559,6 +559,10 @@
G_debug(3, " area = %d Vect_point_in_area() = %d", area, ret);
if (ret >= 1) {
+ if (field > 0) {
+ /* read categories for matched area */
+ Vect_get_area_cats(&In, area, Cats);
+ }
outside = 0;
break;
}
More information about the grass-commit
mailing list