[GRASS-SVN] r35907 - grass/trunk/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Feb 17 09:32:43 EST 2009


Author: martinl
Date: 2009-02-17 09:32:43 -0500 (Tue, 17 Feb 2009)
New Revision: 35907

Modified:
   grass/trunk/gui/wxpython/gui_modules/mapdisp_window.py
   grass/trunk/gui/wxpython/gui_modules/vdigit.py
Log:
wxGUI/vdigit: fix 'copy features' tool
	      (merge from develbranch_6, r35906)


Modified: grass/trunk/gui/wxpython/gui_modules/mapdisp_window.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/mapdisp_window.py	2009-02-17 14:29:38 UTC (rev 35906)
+++ grass/trunk/gui/wxpython/gui_modules/mapdisp_window.py	2009-02-17 14:32:43 UTC (rev 35907)
@@ -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/trunk/gui/wxpython/gui_modules/vdigit.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/vdigit.py	2009-02-17 14:29:38 UTC (rev 35906)
+++ grass/trunk/gui/wxpython/gui_modules/vdigit.py	2009-02-17 14:32:43 UTC (rev 35907)
@@ -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