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

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Oct 3 01:04:00 EDT 2009


Author: cmbarton
Date: 2009-10-03 01:03:59 -0400 (Sat, 03 Oct 2009)
New Revision: 39382

Modified:
   grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/georect.py
Log:
Fixed broken group creation function and a couple more cosmetic fixes.

Modified: grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/georect.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/georect.py	2009-10-03 04:29:03 UTC (rev 39381)
+++ grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/georect.py	2009-10-03 05:03:59 UTC (rev 39382)
@@ -288,10 +288,8 @@
         self.wizard.Destroy()
         
         # clear GCPs from target display
-        self.gcpmgr.ClearGCP(event=None)
         self.parent.curr_page.maptree.mapdisplay.MapWindow.UpdateMap(render=False)
 
-
 class LocationPage(TitledPage):
     """
     Set map type (raster or vector) to georectify and
@@ -498,12 +496,10 @@
         
     def OnMkGroup(self, event):
         """Create new group in source location/mapset"""
-        self.parent.SwitchEnv('new')
         menuform.GUI().ParseCommand(['i.group'],
                                     completed=(self.GetOptData, None, ''),
                                     parentframe=self.parent.parent, modal=True)
-        self.parent.SwitchEnv('original')
-
+                                    
     def OnVGroup(self, event):
         """Add vector maps to group"""
         dlg = VectGroup(parent = self,
@@ -645,7 +641,6 @@
             wx.MessageBox(_('You must select a valid image/map in order to continue'))
             event.Veto()
             return
-
         self.parent.SwitchEnv('original')
         
     def OnEnterPage(self, event=None):



More information about the grass-commit mailing list