[GRASS-SVN] r72416 - grass/trunk/vector/v.random
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Mar 20 08:28:40 PDT 2018
Author: martinl
Date: 2018-03-20 08:28:39 -0700 (Tue, 20 Mar 2018)
New Revision: 72416
Modified:
grass/trunk/vector/v.random/main.c
Log:
v.random restrict wrong categories assigned, see #3524
Modified: grass/trunk/vector/v.random/main.c
===================================================================
--- grass/trunk/vector/v.random/main.c 2018-03-20 15:00:13 UTC (rev 72415)
+++ grass/trunk/vector/v.random/main.c 2018-03-20 15:28:39 UTC (rev 72416)
@@ -559,6 +559,8 @@
G_debug(3, " area = %d Vect_point_in_area() = %d", area, ret);
if (ret >= 1) {
+ /* read categories for matched area */
+ Vect_get_area_cats(&In, area, Cats);
outside = 0;
break;
}
More information about the grass-commit
mailing list