[GRASS-SVN] r46961 - grass/trunk/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Jul 4 06:50:45 EDT 2011
Author: mmetz
Date: 2011-07-04 03:50:45 -0700 (Mon, 04 Jul 2011)
New Revision: 46961
Modified:
grass/trunk/gui/wxpython/gui_modules/wxvdigit.py
Log:
remove redundant code in vector lib: update wxvdigit
Modified: grass/trunk/gui/wxpython/gui_modules/wxvdigit.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/wxvdigit.py 2011-07-04 10:50:08 UTC (rev 46960)
+++ grass/trunk/gui/wxpython/gui_modules/wxvdigit.py 2011-07-04 10:50:45 UTC (rev 46961)
@@ -257,7 +257,7 @@
else:
points = pointsLine
- listLine = Vect_new_list()
+ listLine = Vect_new_boxlist(0)
listRef = Vect_new_list()
listBreak = Vect_new_list()
@@ -273,7 +273,7 @@
Vect_list_append(listBreak, line)
Vect_list_append(listRef, line)
for i in range(listLine.contents.n_values):
- lineBreak = listLine.contents.value[i]
+ lineBreak = listLine.contents.id[i]
if lineBreak == line:
continue
@@ -303,7 +303,7 @@
Vect_destroy_line_struct(pointsCheck)
- Vect_destroy_list(listLine)
+ Vect_destroy_boxlist(listLine)
Vect_destroy_list(listBreak)
Vect_destroy_list(listRef)
More information about the grass-commit
mailing list