Bläddra i källkod

wx GCP manager: keep point index

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@52576 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Metz 12 år sedan
förälder
incheckning
9a03bc5920
1 ändrade filer med 3 tillägg och 3 borttagningar
  1. 3 3
      gui/wxpython/gcp/manager.py

+ 3 - 3
gui/wxpython/gcp/manager.py

@@ -1063,13 +1063,13 @@ class GCP(MapFrame, ColumnSorterMixin):
         Clears all values in selected item of GCP list and unchecks it
         Clears all values in selected item of GCP list and unchecks it
         """
         """
         index = self.list.GetSelected()
         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, i, '0.0')
-        self.list.SetStringItem(index, 4, '')
         self.list.SetStringItem(index, 5, '')
         self.list.SetStringItem(index, 5, '')
+        self.list.SetStringItem(index, 6, '')
         self.list.CheckItem(index, False)
         self.list.CheckItem(index, False)
-        key = self.list.GetItemData(index)
 
 
         # GCP number, source E, source N, target E, target N, fwd error, bkwd error
         # 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]
         self.mapcoordlist[key] = [key, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]