Browse Source

diglib: adjust dig_line_add_updated() to digitizer

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@63364 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Metz 10 years ago
parent
commit
b589cd3d4d
1 changed files with 4 additions and 0 deletions
  1. 4 0
      lib/vector/diglib/update.c

+ 4 - 0
lib/vector/diglib/update.c

@@ -40,6 +40,9 @@ void dig_line_add_updated(struct Plus_head *Plus, int line, off_t offset)
     
     G_debug(3, "dig_line_add_updated(): line = %d", line);
 
+    /* undo/redo in the digitizer needs all steps, 
+     * disable check */
+#if 0
     /* Check if already in list */
     for (i = 0; i < Plus->uplist.n_uplines; i++) {
 	if (Plus->uplist.uplines[i] == line) {
@@ -47,6 +50,7 @@ void dig_line_add_updated(struct Plus_head *Plus, int line, off_t offset)
 	    return;
         }
     }
+#endif
     
     /* Alloc space if needed */
     if (Plus->uplist.n_uplines == Plus->uplist.alloc_uplines) {