[GRASS-SVN] r58287 - grass/trunk/vector/v.what.rast

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Nov 23 18:27:52 PST 2013


Author: hamish
Date: 2013-11-23 18:27:52 -0800 (Sat, 23 Nov 2013)
New Revision: 58287

Modified:
   grass/trunk/vector/v.what.rast/main.c
Log:
simplify V_open call

Modified: grass/trunk/vector/v.what.rast/main.c
===================================================================
--- grass/trunk/vector/v.what.rast/main.c	2013-11-23 01:27:01 UTC (rev 58286)
+++ grass/trunk/vector/v.what.rast/main.c	2013-11-24 02:27:52 UTC (rev 58287)
@@ -120,10 +120,9 @@
 
     /* Open vector */
     Vect_set_open_level(2);
-    if (print_flag->answer)
-	Vect_open_old2(&Map, opt.vect->answer, "", opt.field->answer);
-    else
-	Vect_open_old2(&Map, opt.vect->answer, G_mapset(), opt.field->answer);
+    Vect_open_old2(&Map, opt.vect->answer,
+		   print_flag->answer ? "" : G_mapset(),
+		   opt.field->answer);
 
     field = Vect_get_field_number(&Map, opt.field->answer);
 



More information about the grass-commit mailing list