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

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Dec 18 04:42:34 EST 2009


Author: mmetz
Date: 2009-12-18 04:42:29 -0500 (Fri, 18 Dec 2009)
New Revision: 40040

Modified:
   grass/trunk/lib/vector/Vlib/field.c
Log:
field number bugfix

Modified: grass/trunk/lib/vector/Vlib/field.c
===================================================================
--- grass/trunk/lib/vector/Vlib/field.c	2009-12-18 01:21:27 UTC (rev 40039)
+++ grass/trunk/lib/vector/Vlib/field.c	2009-12-18 09:42:29 UTC (rev 40040)
@@ -496,6 +496,9 @@
 
     if (strcmp(field, "-1") == 0)
 	return -1;
+
+    if (Vect_get_num_dblinks(Map) == 0)
+	return atoi(field);
     
     fi = Vect_get_field2(Map, field);
 



More information about the grass-commit mailing list