[GRASS-SVN] r51091 - grass/trunk/lib/vector/Vlib

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Mar 17 11:26:58 EDT 2012


Author: martinl
Date: 2012-03-17 08:26:58 -0700 (Sat, 17 Mar 2012)
New Revision: 51091

Modified:
   grass/trunk/lib/vector/Vlib/read.c
Log:
vlib: Vect_read_line(): don't call G_fatal_error(), return error code


Modified: grass/trunk/lib/vector/Vlib/read.c
===================================================================
--- grass/trunk/lib/vector/Vlib/read.c	2012-03-17 14:34:35 UTC (rev 51090)
+++ grass/trunk/lib/vector/Vlib/read.c	2012-03-17 15:26:58 UTC (rev 51091)
@@ -127,10 +127,11 @@
     
     ret = (*Read_next_line_array[Map->format][Map->level]) (Map, line_p,
 							    line_c);
+    /* 
     if (ret == -1)
 	G_fatal_error(_("Unable to read feature %d vector map <%s>"),
 		      Map->next_line, Vect_get_full_name(Map));
-    
+    */
     return ret;
 }
 
@@ -169,10 +170,12 @@
 		      line, Vect_get_full_name(Map), Map->plus.n_lines);
 
     ret = (*Read_line_array[Map->format]) (Map, line_p, line_c, line);
+
+    /*
     if (ret == -1)
 	G_fatal_error(_("Unable to read feature %d from vector map <%s>"),
 		      line, Vect_get_full_name(Map));
-    
+    */
     return ret;
 }
 



More information about the grass-commit mailing list