Przeglądaj źródła

v.to.db: Write history (#481)

Huidae Cho 5 lat temu
rodzic
commit
44bc9e9455
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2 1
      vector/v.to.db/main.c

+ 2 - 1
vector/v.to.db/main.c

@@ -69,7 +69,7 @@ int main(int argc, char *argv[])
 
     /* open map */
     Vect_set_open_level(2);
-    if (Vect_open_old(&Map, options.name, "") < 0)
+    if (Vect_open_update(&Map, options.name, "") < 0)
 	G_fatal_error(_("Unable to open vector map <%s>"), options.name);
     Vect_set_error_handler_io(&Map, NULL);
    
@@ -389,6 +389,7 @@ int main(int argc, char *argv[])
     else {
 	update(&Map);
 	Vect_set_db_updated(&Map);
+	Vect_hist_command(&Map);
     }
 
     Vect_close(&Map);