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

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Nov 14 03:11:48 EST 2011


Author: martinl
Date: 2011-11-14 00:11:48 -0800 (Mon, 14 Nov 2011)
New Revision: 49225

Modified:
   grass/trunk/lib/vector/Vlib/field.c
Log:
vlib: update Vect_set_db_updated() for OGR access


Modified: grass/trunk/lib/vector/Vlib/field.c
===================================================================
--- grass/trunk/lib/vector/Vlib/field.c	2011-11-14 08:11:08 UTC (rev 49224)
+++ grass/trunk/lib/vector/Vlib/field.c	2011-11-14 08:11:48 UTC (rev 49225)
@@ -936,14 +936,15 @@
   \brief Rewrite 'dbln' file
   
   Should be used by GRASS modules which update database tables, so
-  that other applications know that tables were changed and can
-  reload data.
+  that other applications know that tables were changed and can reload
+  data.
   
   \param Map pointer to Map_info structure
 */
 void Vect_set_db_updated(struct Map_info *Map)
 {
-    if (strcmp(Map->mapset, G_mapset()) != 0) {
+    if (strcmp(Map->mapset, G_mapset()) != 0 &&
+	G_strcasecmp(Map->mapset, "ogr") != 0) {
 	G_fatal_error(_("Bug: attempt to update map which is not in current mapset"));
     }
 



More information about the grass-commit mailing list