[GRASS-SVN] r70586 - grass/trunk/lib/vector/vedit
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Feb 15 09:10:23 PST 2017
Author: hcho
Date: 2017-02-15 09:10:23 -0800 (Wed, 15 Feb 2017)
New Revision: 70586
Modified:
grass/trunk/lib/vector/vedit/break.c
Log:
vedit: Remove a compile warning
Modified: grass/trunk/lib/vector/vedit/break.c
===================================================================
--- grass/trunk/lib/vector/vedit/break.c 2017-02-15 16:31:20 UTC (rev 70585)
+++ grass/trunk/lib/vector/vedit/break.c 2017-02-15 17:10:23 UTC (rev 70586)
@@ -247,12 +247,13 @@
line_new = -1;
if (line_new > -1) {
+ n_points = Points_from->n_points - 1;
+
if (first) {
x = Points_from->x[0];
y = Points_from->y[0];
}
else {
- n_points = Points_from->n_points - 1;
x = Points_from->x[n_points];
y = Points_from->y[n_points];
}
More information about the grass-commit
mailing list