Browse Source

vlib: Vect_write_dblinks() - nothing to write for non-native formats

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

+ 5 - 0
lib/vector/Vlib/field.c

@@ -793,6 +793,10 @@ int Vect_write_dblinks(struct Map_info *Map)
     char file[GPATH_MAX], buf[GPATH_MAX];
     struct dblinks *dbl;
 
+    if (Map->format != GV_FORMAT_NATIVE)
+	/* nothing to write for non-native formats */
+	return 0;
+    
     G_debug(1, "Vect_write_dblinks(): map = %s, mapset = %s", Map->name,
 	    Map->mapset);
 
@@ -826,6 +830,7 @@ int Vect_write_dblinks(struct Map_info *Map)
     fclose(fd);
 
     G_debug(1, "Dblinks written");
+    
     return 0;
 }