Browse Source

vlib: use Vect_get_num_dblinks() - see https://trac.osgeo.org/grass/changeset/48941

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@48946 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 13 years ago
parent
commit
537939891c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/vector/Vlib/write_ogr.c

+ 1 - 1
lib/vector/Vlib/write_ogr.c

@@ -72,7 +72,7 @@ off_t V1_write_line_ogr(struct Map_info *Map, int type,
     }
 
     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) {