浏览代码

Fix bug https://trac.osgeo.org/grass/ticket/933

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@41227 15284696-431f-4ddb-bdfa-cd5b030d7da7
Paul Kelly 15 年之前
父节点
当前提交
9bb4d7b09b
共有 1 个文件被更改,包括 2 次插入4 次删除
  1. 2 4
      vector/v.delaunay/in_out.c

+ 2 - 4
vector/v.delaunay/in_out.c

@@ -189,10 +189,8 @@ void remove_duplicates(unsigned int *size)
     if (n > 0) {
 	for (next = 1; next < n; next++) {
 	    if (sites[prev].x != sites[next].x ||
-		sites[prev].y != sites[next].y) {
-		sites[++prev].x = sites[next].x;
-		sites[prev].y = sites[next].y;
-	    }	
+		sites[prev].y != sites[next].y)
+		sites[++prev] = sites[next];
 	}
 	*size = prev + 1;
     }