[GRASS-SVN] r46957 - grass/trunk/lib/vector/vedit
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Jul 4 06:47:42 EDT 2011
Author: mmetz
Date: 2011-07-04 03:47:42 -0700 (Mon, 04 Jul 2011)
New Revision: 46957
Modified:
grass/trunk/lib/vector/vedit/render.c
Log:
remove redundant code in vector lib: update vedit
Modified: grass/trunk/lib/vector/vedit/render.c
===================================================================
--- grass/trunk/lib/vector/vedit/render.c 2011-07-04 10:47:13 UTC (rev 46956)
+++ grass/trunk/lib/vector/vedit/render.c 2011-07-04 10:47:42 UTC (rev 46957)
@@ -65,7 +65,7 @@
int map_height, double map_res)
{
int i, nfeat, fid;
- struct ilist *list;
+ struct boxlist *list;
struct robject_list *list_obj;
struct robject *robj;
@@ -78,7 +78,7 @@
region.map_west = center_easting - (map_width / 2.) * map_res;
region.map_north = center_northing + (map_height / 2.) * map_res;
- list = Vect_new_list();
+ list = Vect_new_boxlist(0);
list_obj = NULL;
state.nitems_alloc = 1000;
@@ -92,7 +92,7 @@
if (draw_flag & DRAW_AREA) {
nfeat = Vect_select_areas_by_box(Map, box, list);
for (i = 0; i < nfeat; i++) {
- fid = list->value[i];
+ fid = list->id[i];
draw_area(Map, fid, list_obj);
}
}
@@ -105,7 +105,7 @@
/* features */
for (i = 0; i < list->n_values; i++) {
- fid = list->value[i];
+ fid = list->id[i];
robj = draw_line(Map, fid, draw_flag);
if (!robj)
continue;
@@ -135,7 +135,7 @@
list_obj->nitems *
sizeof(struct robject *));
- Vect_destroy_list(list);
+ Vect_destroy_boxlist(list);
return list_obj;
}
More information about the grass-commit
mailing list