[GRASS-SVN] r67294 - grass/trunk/vector/v.decimate

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Dec 20 19:38:49 PST 2015


Author: wenzeslaus
Date: 2015-12-20 19:38:49 -0800 (Sun, 20 Dec 2015)
New Revision: 67294

Modified:
   grass/trunk/vector/v.decimate/count_decimation.c
Log:
v.decimate: fix counting of points at the beginning (r67160 in v.in.lidar)

Modified: grass/trunk/vector/v.decimate/count_decimation.c
===================================================================
--- grass/trunk/vector/v.decimate/count_decimation.c	2015-12-21 02:50:05 UTC (rev 67293)
+++ grass/trunk/vector/v.decimate/count_decimation.c	2015-12-21 03:38:49 UTC (rev 67294)
@@ -92,11 +92,13 @@
 int count_decimation_is_out(struct CountDecimationControl *control)
 {
     if (control->offset_n) {
-        control->offset_n_counter++;
-        if (control->offset_n_counter < control->offset_n)
+        if (control->offset_n_counter < control->offset_n) {
+            control->offset_n_counter++;
             return TRUE;
-        else
+        }
+        else {
             control->offset_n = 0;  /* disable offset check */
+        }
     }
     if (control->skip_every) {
         control->every_counter++;



More information about the grass-commit mailing list