浏览代码

vedit: Remove a compile warning

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@70586 15284696-431f-4ddb-bdfa-cd5b030d7da7
Huidae Cho 8 年之前
父节点
当前提交
1731c21718
共有 1 个文件被更改,包括 2 次插入1 次删除
  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];
 	}