Explorar o código

vlib: Vect_read_line(): don't call G_fatal_error(), return error code

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@51091 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa %!s(int64=13) %!d(string=hai) anos
pai
achega
5dbe70f5cb
Modificáronse 1 ficheiros con 5 adicións e 2 borrados
  1. 5 2
      lib/vector/Vlib/read.c

+ 5 - 2
lib/vector/Vlib/read.c

@@ -127,10 +127,11 @@ int Vect_read_next_line(const struct Map_info *Map,
     
     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 @@ int Vect_read_line(const struct Map_info *Map,
 		      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;
 }