瀏覽代碼

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

Huidae Cho 5 年之前
父節點
當前提交
44bc9e9455
共有 1 個文件被更改,包括 2 次插入1 次删除
  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);