[GRASS-SVN] r42618 - grass/branches/releasebranch_6_4/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Jun 21 06:55:57 EDT 2010


Author: mmetz
Date: 2010-06-21 10:55:57 +0000 (Mon, 21 Jun 2010)
New Revision: 42618

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

Modified: grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/georect.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/georect.py	2010-06-20 22:56:17 UTC (rev 42617)
+++ grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/georect.py	2010-06-21 10:55:57 UTC (rev 42618)
@@ -1037,6 +1037,11 @@
 
     def ReloadGCPs(self, event):
         """Reload data from file"""
+
+	# delete all items in mapcoordlist
+	del self.mapcoordlist
+	self.mapcoordlist = []
+
         self.list.LoadData()
     
     def OnFocus(self, event):
@@ -1784,7 +1789,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