Explorar el Código

diglib: fix list of updated lines

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@63349 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Metz hace 10 años
padre
commit
9513561e29
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      lib/vector/diglib/update.c

+ 2 - 2
lib/vector/diglib/update.c

@@ -42,8 +42,8 @@ void dig_line_add_updated(struct Plus_head *Plus, int line, off_t offset)
 
     /* Check if already in list */
     for (i = 0; i < Plus->uplist.n_uplines; i++) {
-	if (Plus->uplist.uplines[i] == line) {
-	    Plus->uplist.uplines_offset[i] = offset;
+	if (Plus->uplist.uplines[i] == line && 
+	    Plus->uplist.uplines_offset[i] == offset) {
             G_debug(3, "\tskipped");
 	    return;
         }