[GRASS-SVN] r52612 - grass/trunk/gui/wxpython/gcp

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Aug 9 06:26:10 PDT 2012


Author: mmetz
Date: 2012-08-09 06:26:08 -0700 (Thu, 09 Aug 2012)
New Revision: 52612

Modified:
   grass/trunk/gui/wxpython/gcp/manager.py
Log:
wx GCP Manager: make selected points visible in the list

Modified: grass/trunk/gui/wxpython/gcp/manager.py
===================================================================
--- grass/trunk/gui/wxpython/gcp/manager.py	2012-08-09 11:55:52 UTC (rev 52611)
+++ grass/trunk/gui/wxpython/gcp/manager.py	2012-08-09 13:26:08 UTC (rev 52612)
@@ -1972,6 +1972,8 @@
 
         self.ResizeColumns()
         self.render = True
+	
+	self.EnsureVisible(self.selected)
 
     def OnCheckItem(self, index, flag):
         """!Item is checked/unchecked"""
@@ -2010,6 +2012,8 @@
         self.gcp.pointsToDrawSrc.AddItem(coords = [0,0], label = str(self.selectedkey))
         self.gcp.pointsToDrawTgt.AddItem(coords = [0,0], label = str(self.selectedkey))
         
+	self.EnsureVisible(self.selected)
+
         return self.selected
 
     def DeleteGCPItem(self):



More information about the grass-commit mailing list