[GRASS-SVN] r34597 - grass/trunk/lib/vector/Vlib

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Nov 28 06:21:11 EST 2008


Author: marisn
Date: 2008-11-28 06:21:11 -0500 (Fri, 28 Nov 2008)
New Revision: 34597

Modified:
   grass/trunk/lib/vector/Vlib/map.c
Log:
Add documentation notice Vect_copy_tables about copying nonexisting tables (merge from devbr6 r34596)

Modified: grass/trunk/lib/vector/Vlib/map.c
===================================================================
--- grass/trunk/lib/vector/Vlib/map.c	2008-11-28 10:35:49 UTC (rev 34596)
+++ grass/trunk/lib/vector/Vlib/map.c	2008-11-28 11:21:11 UTC (rev 34597)
@@ -554,6 +554,8 @@
    \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 @@
     struct field_info *Fi, *Fin;
     dbDriver *driver;
 
-    G_debug(2, "Vect_copy_tables()");
+    n = Vect_get_num_dblinks(In);
 
-    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;



More information about the grass-commit mailing list