[GRASS-SVN] r52796 - grass/trunk/lib/vector/vedit

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Aug 21 00:46:47 PDT 2012


Author: mmetz
Date: 2012-08-21 00:46:46 -0700 (Tue, 21 Aug 2012)
New Revision: 52796

Modified:
   grass/trunk/lib/vector/vedit/cats.c
Log:
vedit lib: safer return type check

Modified: grass/trunk/lib/vector/vedit/cats.c
===================================================================
--- grass/trunk/lib/vector/vedit/cats.c	2012-08-21 07:46:07 UTC (rev 52795)
+++ grass/trunk/lib/vector/vedit/cats.c	2012-08-21 07:46:46 UTC (rev 52796)
@@ -68,7 +68,7 @@
 		    }
 		}
 		else {		/* delete old category */
-		    if (Vect_field_cat_del(Cats, layer, cat) == 1) {
+		    if (Vect_field_cat_del(Cats, layer, cat) > 0) {
 			rewrite = 1;
 		    }
 		}



More information about the grass-commit mailing list