[GRASS-dev] (Vect_open_new): use G_find_vector2 () instead of G_find_file2 ()?

Ivan Shmakov oneingray at gmail.com
Sat Mar 21 01:56:07 EDT 2009


	I wonder, can't G_find_vector2 () be called instead of calling
	G_find_file2 () directly in Vect_open_new ()?  Like:

--- grass-trunk/lib/vector/Vlib/open.c~	2009-03-20 22:59:08.000000000 +0600
+++ grass-trunk/lib/vector/Vlib/open.c	2009-03-21 11:51:33.093697386 +0600
@@ -547,7 +547,7 @@
     }
 
     /* Check if map already exists */
-    if (G_find_file2(GRASS_VECT_DIRECTORY, name, G_mapset()) != NULL) {
+    if (G_find_vector2 (name, G_mapset()) != NULL) {
 	G_warning(_("Vector map <%s> already exists and will be overwritten"),
 		  name);
 

-- 
FSF associate member #7257


More information about the grass-dev mailing list