Browse Source

vedit: Remove a compile warning

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@70586 15284696-431f-4ddb-bdfa-cd5b030d7da7
Huidae Cho 8 years ago
parent
commit
1731c21718
1 changed files with 2 additions and 1 deletions
  1. 2 1
      lib/vector/vedit/break.c

+ 2 - 1
lib/vector/vedit/break.c

@@ -247,12 +247,13 @@ int connect_lines(struct Map_info *Map, int first, int line_from, int line_to,
 	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];
 	}