[GRASS-SVN] r70708 - grass/trunk/vector/v.to.db

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Mar 1 03:11:20 PST 2017


Author: hcho
Date: 2017-03-01 03:11:20 -0800 (Wed, 01 Mar 2017)
New Revision: 70708

Modified:
   grass/trunk/vector/v.to.db/main.c
Log:
v.to.db: findex > -1

Modified: grass/trunk/vector/v.to.db/main.c
===================================================================
--- grass/trunk/vector/v.to.db/main.c	2017-03-01 11:10:26 UTC (rev 70707)
+++ grass/trunk/vector/v.to.db/main.c	2017-03-01 11:11:20 UTC (rev 70708)
@@ -80,7 +80,7 @@
     Values = (struct value *) G_calloc(n + 1, sizeof(struct value));
 
     /* prepopulate Values */
-    if (findex > 0)
+    if (findex > -1)
 	n = Vect_cidx_get_num_cats_by_index(&Map, findex);
     i = 0;
     Values[i].cat = -1;		/* features without category */



More information about the grass-commit mailing list