[GRASS-SVN] r63365 - grass/trunk/gui/wxpython/vdigit
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Dec 3 13:52:20 PST 2014
Author: mmetz
Date: 2014-12-03 13:52:20 -0800 (Wed, 03 Dec 2014)
New Revision: 63365
Modified:
grass/trunk/gui/wxpython/vdigit/wxdigit.py
Log:
wx vdigit: another undo/redo fix
Modified: grass/trunk/gui/wxpython/vdigit/wxdigit.py
===================================================================
--- grass/trunk/gui/wxpython/vdigit/wxdigit.py 2014-12-03 21:50:46 UTC (rev 63364)
+++ grass/trunk/gui/wxpython/vdigit/wxdigit.py 2014-12-03 21:52:20 UTC (rev 63365)
@@ -405,8 +405,18 @@
ret = 0
actions = self.changesets[changeset]
-
- for action in actions:
+
+ if undo:
+ firstaction = 0
+ lastaction = len(actions)
+ step = 1
+ else:
+ firstaction = len(actions) - 1
+ lastaction = -1
+ step = -1
+
+ for i in range(firstaction, lastaction, step):
+ action = actions[i]
line = action['line']
if action['offset'] > 0:
if Vect_line_alive(self.poMapInfo, line):
More information about the grass-commit
mailing list