[GRASS-SVN] r30649 - grass/branches/releasebranch_6_3/vector/v.build

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Mar 19 12:15:22 EDT 2008


Author: martinl
Date: 2008-03-19 12:15:22 -0400 (Wed, 19 Mar 2008)
New Revision: 30649

Modified:
   grass/branches/releasebranch_6_3/vector/v.build/main.c
Log:
v.build: call Vect_close() if map is opened (backported from trunk)


Modified: grass/branches/releasebranch_6_3/vector/v.build/main.c
===================================================================
--- grass/branches/releasebranch_6_3/vector/v.build/main.c	2008-03-19 16:12:57 UTC (rev 30648)
+++ grass/branches/releasebranch_6_3/vector/v.build/main.c	2008-03-19 16:15:22 UTC (rev 30649)
@@ -152,7 +152,9 @@
         Vect_close ( &Err );
     }
 
-    Vect_close (&Map);
+    if (build || dump || sdump || cdump) {
+	Vect_close (&Map);
+    }
     
     exit(EXIT_SUCCESS);
 }



More information about the grass-commit mailing list