[GRASS-SVN] r49422 - grass/trunk/vector/v.buffer

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Nov 29 06:11:15 EST 2011


Author: martinl
Date: 2011-11-29 03:11:15 -0800 (Tue, 29 Nov 2011)
New Revision: 49422

Modified:
   grass/trunk/vector/v.buffer/main.c
Log:
v.buffer: call Vect_set_error_handler_io() after Vect_open_old2()


Modified: grass/trunk/vector/v.buffer/main.c
===================================================================
--- grass/trunk/vector/v.buffer/main.c	2011-11-29 11:09:52 UTC (rev 49421)
+++ grass/trunk/vector/v.buffer/main.c	2011-11-29 11:11:15 UTC (rev 49422)
@@ -298,12 +298,11 @@
 		    "option or clean manually with v.clean tool=break; "
 		    "v.category step=0; v.extract -d type=area"));
 
-    Vect_set_error_handler_io(&In, &Out);
-    
     Vect_check_input_output_name(in_opt->answer, out_opt->answer, G_FATAL_EXIT);
 
     Vect_set_open_level(2); /* topology required */
     Vect_open_old2(&In, in_opt->answer, "", field_opt->answer);
+    Vect_set_error_handler_io(&In, &Out);
 
     if (field_opt->answer)
 	field = Vect_get_field_number(&In, field_opt->answer);



More information about the grass-commit mailing list