[GRASS-SVN] r32942 - grass/branches/develbranch_6/lib/g3d

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Aug 20 17:04:49 EDT 2008


Author: neteler
Date: 2008-08-20 17:04:49 -0400 (Wed, 20 Aug 2008)
New Revision: 32942

Modified:
   grass/branches/develbranch_6/lib/g3d/g3dregion.c
Log:
glynn: Allow empty mapset argument (to use search path) (merge from trunk, r32735)

Modified: grass/branches/develbranch_6/lib/g3d/g3dregion.c
===================================================================
--- grass/branches/develbranch_6/lib/g3d/g3dregion.c	2008-08-20 20:56:44 UTC (rev 32941)
+++ grass/branches/develbranch_6/lib/g3d/g3dregion.c	2008-08-20 21:04:49 UTC (rev 32942)
@@ -276,7 +276,10 @@
 
     if (G__name_is_fully_qualified(name, xname, xmapset))
 	G3d_filename(fullName, G3D_HEADER_ELEMENT, xname, xmapset);
-    else
+    else {
+	if (!mapset || !*mapset)
+	    mapset = G_find_grid3(name, "");
 	G3d_filename(fullName, G3D_HEADER_ELEMENT, name, mapset);
+    }
     return G3d_readWindow(region, fullName);
 }



More information about the grass-commit mailing list