[GRASS-SVN] r44721 - grass/trunk/vector/v.random
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Dec 25 11:25:52 EST 2010
Author: martinl
Date: 2010-12-25 08:25:52 -0800 (Sat, 25 Dec 2010)
New Revision: 44721
Modified:
grass/trunk/vector/v.random/main.c
Log:
v.random: simplify code (cosmetics)
Modified: grass/trunk/vector/v.random/main.c
===================================================================
--- grass/trunk/vector/v.random/main.c 2010-12-25 16:21:28 UTC (rev 44720)
+++ grass/trunk/vector/v.random/main.c 2010-12-25 16:25:52 UTC (rev 44721)
@@ -156,10 +156,8 @@
G_fatal_error(_("Number of points must be > 0 (%d given)"), n);
}
- if (flag.z->answer)
- Vect_open_new(&Out, output, WITH_Z);
- else
- Vect_open_new(&Out, output, WITHOUT_Z);
+ /* create new vector map */
+ Vect_open_new(&Out, output, flag.z->answer ? WITH_Z : WITHOUT_Z);
/* Do we need to write random values into attribute table? */
if (parm.zcol->answer) {
More information about the grass-commit
mailing list