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

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Aug 19 12:19:59 EDT 2011


Author: martinl
Date: 2011-08-19 09:19:59 -0700 (Fri, 19 Aug 2011)
New Revision: 47781

Modified:
   grass/trunk/lib/vector/Vlib/field.c
Log:
vlib: Vect_write_dblinks() -  nothing to write for non-native formats


Modified: grass/trunk/lib/vector/Vlib/field.c
===================================================================
--- grass/trunk/lib/vector/Vlib/field.c	2011-08-19 16:12:12 UTC (rev 47780)
+++ grass/trunk/lib/vector/Vlib/field.c	2011-08-19 16:19:59 UTC (rev 47781)
@@ -793,6 +793,10 @@
     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 @@
     fclose(fd);
 
     G_debug(1, "Dblinks written");
+    
     return 0;
 }
 



More information about the grass-commit mailing list