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

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Apr 21 09:46:04 EDT 2010


Author: mmetz
Date: 2010-04-21 09:46:02 -0400 (Wed, 21 Apr 2010)
New Revision: 41951

Modified:
   grass/trunk/lib/vector/Vlib/field.c
Log:
don't set layer to 0 for layers without table

Modified: grass/trunk/lib/vector/Vlib/field.c
===================================================================
--- grass/trunk/lib/vector/Vlib/field.c	2010-04-21 12:38:22 UTC (rev 41950)
+++ grass/trunk/lib/vector/Vlib/field.c	2010-04-21 13:46:02 UTC (rev 41951)
@@ -505,7 +505,7 @@
     if (fi)
 	return fi->number;
 
-    return 0;
+    return atoi(field);
 }
 
 /*!



More information about the grass-commit mailing list