[GRASS-SVN] r52576 - grass/trunk/gui/wxpython/gcp
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Aug 7 06:00:01 PDT 2012
Author: mmetz
Date: 2012-08-07 06:00:01 -0700 (Tue, 07 Aug 2012)
New Revision: 52576
Modified:
grass/trunk/gui/wxpython/gcp/manager.py
Log:
wx GCP manager: keep point index
Modified: grass/trunk/gui/wxpython/gcp/manager.py
===================================================================
--- grass/trunk/gui/wxpython/gcp/manager.py 2012-08-07 12:59:42 UTC (rev 52575)
+++ grass/trunk/gui/wxpython/gcp/manager.py 2012-08-07 13:00:01 UTC (rev 52576)
@@ -1063,13 +1063,13 @@
Clears all values in selected item of GCP list and unchecks it
"""
index = self.list.GetSelected()
+ key = self.list.GetItemData(index)
- for i in range(4):
+ for i in range(1, 5):
self.list.SetStringItem(index, i, '0.0')
- self.list.SetStringItem(index, 4, '')
self.list.SetStringItem(index, 5, '')
+ self.list.SetStringItem(index, 6, '')
self.list.CheckItem(index, False)
- key = self.list.GetItemData(index)
# GCP number, source E, source N, target E, target N, fwd error, bkwd error
self.mapcoordlist[key] = [key, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]
More information about the grass-commit
mailing list