浏览代码

Add documentation notice Vect_copy_tables about copying nonexisting tables (merge from devbr6 https://trac.osgeo.org/grass/changeset/34596)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@34597 15284696-431f-4ddb-bdfa-cd5b030d7da7
Maris Nartiss 16 年之前
父节点
当前提交
077331465a
共有 1 个文件被更改,包括 5 次插入2 次删除
  1. 5 2
      lib/vector/Vlib/map.c

+ 5 - 2
lib/vector/Vlib/map.c

@@ -554,6 +554,8 @@ int Vect_delete(const char *map)
    \brief Copy tables linked to vector map.
 
    All if field = 0, or table defined by given field if field > 0
+   Notice, that if input map has no tables defined, it will copy
+   nothing and return 0 (success).
 
    \param[in] In input vector map
    \param[out] Out output vector map
@@ -568,9 +570,10 @@ int Vect_copy_tables(struct Map_info *In, struct Map_info *Out, int field)
     struct field_info *Fi, *Fin;
     dbDriver *driver;
 
-    G_debug(2, "Vect_copy_tables()");
-
     n = Vect_get_num_dblinks(In);
+
+    G_debug(2, "Vect_copy_tables(): copying %d tables",n);
+
     type = GV_1TABLE;
     if (n > 1)
 	type = GV_MTABLE;