[GRASS-SVN] r42620 - grass/trunk/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Jun 21 07:01:15 EDT 2010


Author: mmetz
Date: 2010-06-21 11:01:15 +0000 (Mon, 21 Jun 2010)
New Revision: 42620

Modified:
   grass/trunk/gui/wxpython/gui_modules/georect.py
Log:
wxGUI georectifier: save colour correctly, reset mapcoordlist on reload

Modified: grass/trunk/gui/wxpython/gui_modules/georect.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/georect.py	2010-06-21 11:00:03 UTC (rev 42619)
+++ grass/trunk/gui/wxpython/gui_modules/georect.py	2010-06-21 11:01:15 UTC (rev 42620)
@@ -1025,7 +1025,12 @@
 
     def ReloadGCPs(self, event):
         """!Reload data from file"""
-        self.list.LoadData()
+
+ 	# delete all items in mapcoordlist
+ 	del self.mapcoordlist
+ 	self.mapcoordlist = []
+ 
+	self.list.LoadData()
     
     def OnFocus(self, event):
         # self.grwiz.SwitchEnv('new')
@@ -1767,7 +1772,7 @@
 
     def UpdateSettings(self):
         UserSettings.Set(group='georect', key='symbol', subkey='color',
-                         value=wx.FindWindowById(self.symbol['color']).GetColour())
+                         value=tuple(wx.FindWindowById(self.symbol['color']).GetColour()))
         UserSettings.Set(group='georect', key='symbol', subkey='width',
                          value=wx.FindWindowById(self.symbol['width']).GetValue())
 



More information about the grass-commit mailing list