[GRASS-SVN] r35906 - grass/branches/develbranch_6/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Feb 17 09:29:38 EST 2009


Author: martinl
Date: 2009-02-17 09:29:38 -0500 (Tue, 17 Feb 2009)
New Revision: 35906

Modified:
   grass/branches/develbranch_6/gui/wxpython/gui_modules/mapdisp_window.py
   grass/branches/develbranch_6/gui/wxpython/gui_modules/vdigit.py
Log:
wxGUI/vdigit: fix 'copy features' tool


Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/mapdisp_window.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/mapdisp_window.py	2009-02-17 12:16:36 UTC (rev 35905)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/mapdisp_window.py	2009-02-17 14:29:38 UTC (rev 35906)
@@ -27,6 +27,8 @@
 import dbm
 import gdialogs
 import gcmd
+import utils
+import globalvar
 from debug import Debug
 from preferences import globalSettings as UserSettings
 from vdigit import GV_LINES as VDigit_Lines_Type

Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/vdigit.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/vdigit.py	2009-02-17 12:16:36 UTC (rev 35905)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/vdigit.py	2009-02-17 14:29:38 UTC (rev 35906)
@@ -190,13 +190,14 @@
         ret = gcmd.RunCommand('v.edit',
                               parent = self,
                               quiet = True,
+                              read = True,
                               map = bgmap,
                               tool = 'select',
                               bbox= '%f,%f,%f,%f' % (pos1[0], pos1[1], pos2[0], pos2[1]))
                               
         if not ret:
-            return ids
-
+            return []
+        
         output = ret.splitlines()[0] # first line
         ids = output.split(',') 
         ids = map(int, ids) # str -> int



More information about the grass-commit mailing list