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

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Oct 25 17:16:24 EDT 2011


Author: martinl
Date: 2011-10-25 14:16:24 -0700 (Tue, 25 Oct 2011)
New Revision: 48946

Modified:
   grass/trunk/lib/vector/Vlib/write_ogr.c
Log:
vlib: use Vect_get_num_dblinks() - see r48941


Modified: grass/trunk/lib/vector/Vlib/write_ogr.c
===================================================================
--- grass/trunk/lib/vector/Vlib/write_ogr.c	2011-10-25 20:53:39 UTC (rev 48945)
+++ grass/trunk/lib/vector/Vlib/write_ogr.c	2011-10-25 21:16:24 UTC (rev 48946)
@@ -72,7 +72,7 @@
     }
 
     cat = -1; /* no attributes to be written */
-    if (cats->n_cats > 0 && Map->dblnk->n_fields > 0) {
+    if (cats->n_cats > 0 && Vect_get_num_dblinks(Map) > 0) {
 	/* check for attributes */
 	Fi = Vect_get_dblink(Map, 0);
 	if (Fi) {



More information about the grass-commit mailing list