[GRASS-SVN] r52574 - grass/branches/releasebranch_6_4/gui/wxpython/gcp
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Aug 7 05:59:09 PDT 2012
Author: mmetz
Date: 2012-08-07 05:59:08 -0700 (Tue, 07 Aug 2012)
New Revision: 52574
Modified:
grass/branches/releasebranch_6_4/gui/wxpython/gcp/manager.py
Log:
wx GCP manager: keep point index
Modified: grass/branches/releasebranch_6_4/gui/wxpython/gcp/manager.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/gcp/manager.py 2012-08-07 12:40:43 UTC (rev 52573)
+++ grass/branches/releasebranch_6_4/gui/wxpython/gcp/manager.py 2012-08-07 12:59:08 UTC (rev 52574)
@@ -987,13 +987,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