[GRASS-SVN] r32194 - grass/branches/develbranch_6/vector/v.category
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Jul 21 11:02:34 EDT 2008
Author: martinl
Date: 2008-07-21 11:02:34 -0400 (Mon, 21 Jul 2008)
New Revision: 32194
Modified:
grass/branches/develbranch_6/vector/v.category/main.c
Log:
v.category: check if input vector map exists on report/print (merged from trunk, r32193)
Modified: grass/branches/develbranch_6/vector/v.category/main.c
===================================================================
--- grass/branches/develbranch_6/vector/v.category/main.c 2008-07-21 15:00:31 UTC (rev 32193)
+++ grass/branches/develbranch_6/vector/v.category/main.c 2008-07-21 15:02:34 UTC (rev 32194)
@@ -181,6 +181,10 @@
}
Vect_check_input_output_name ( in_opt->answer, out_opt->answer, GV_FATAL_EXIT );
}
+ else {
+ if ( G_find_vector2 (in_opt->answer, "") == NULL)
+ G_fatal_error (_("Vector map <%s> not found"), in_opt->answer);
+ }
Points = Vect_new_line_struct ();
Cats = Vect_new_cats_struct ();
More information about the grass-commit
mailing list