[GRASS-SVN] r54498 - grass/trunk/gui/wxpython/iclass
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Jan 2 08:22:57 PST 2013
Author: martinl
Date: 2013-01-02 08:22:56 -0800 (Wed, 02 Jan 2013)
New Revision: 54498
Modified:
grass/trunk/gui/wxpython/iclass/frame.py
Log:
wxGUI/iclass: fix bug introduced in r54496
Modified: grass/trunk/gui/wxpython/iclass/frame.py
===================================================================
--- grass/trunk/gui/wxpython/iclass/frame.py 2013-01-02 16:22:10 UTC (rev 54497)
+++ grass/trunk/gui/wxpython/iclass/frame.py 2013-01-02 16:22:56 UTC (rev 54498)
@@ -512,13 +512,6 @@
wx.BeginBusyCursor()
wx.Yield()
- if 0 != RunCommand('g.copy',
- vect = [vector, self.trainingAreaVector],
- overwrite = True, quiet = True,
- parent = self):
- wx.EndBusyCursor()
- return False
-
mapLayer = self.toolbars['vdigit'].mapLayer
# set mapLayer temporarily to None
# to avoid 'save changes' code in vdigit.toolbars
@@ -528,6 +521,13 @@
if not ret:
wx.EndBusyCursor()
return False
+
+ if 0 != RunCommand('g.copy',
+ vect = [vector, self.trainingAreaVector],
+ overwrite = True, quiet = True,
+ parent = self):
+ wx.EndBusyCursor()
+ return False
ret = self.toolbars['vdigit'].StartEditing(mapLayer)
if not ret:
@@ -569,7 +569,7 @@
RunCommand('v.db.droptable',
flags = 'f',
map = self.trainingAreaVector)
-
+
# we use first layer with table, TODO: user should choose
layer = None
for key in dbInfo.layers.keys():
More information about the grass-commit
mailing list