[GRASS-SVN] r42619 -
grass/branches/develbranch_6/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Jun 21 07:00:03 EDT 2010
Author: mmetz
Date: 2010-06-21 11:00:03 +0000 (Mon, 21 Jun 2010)
New Revision: 42619
Modified:
grass/branches/develbranch_6/gui/wxpython/gui_modules/georect.py
Log:
wxGUI georectifier: save colour correctly, reset mapcoordlist on reload
Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/georect.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/georect.py 2010-06-21 10:55:57 UTC (rev 42618)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/georect.py 2010-06-21 11:00:03 UTC (rev 42619)
@@ -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