[GRASS-SVN] r32735 - grass/trunk/lib/g3d

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Aug 13 04:12:29 EDT 2008


Author: glynn
Date: 2008-08-13 04:12:28 -0400 (Wed, 13 Aug 2008)
New Revision: 32735

Modified:
   grass/trunk/lib/g3d/g3dregion.c
Log:
Allow empty mapset argument (to use search path)


Modified: grass/trunk/lib/g3d/g3dregion.c
===================================================================
--- grass/trunk/lib/g3d/g3dregion.c	2008-08-13 07:08:29 UTC (rev 32734)
+++ grass/trunk/lib/g3d/g3dregion.c	2008-08-13 08:12:28 UTC (rev 32735)
@@ -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