Przeglądaj źródła

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 lat temu
rodzic
commit
9bb4d7b09b
1 zmienionych plików z 2 dodań i 4 usunięć
  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;
     }