[GRASS-SVN] r65599 - grass/trunk/gui/wxpython/gui_core

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Jul 16 05:39:51 PDT 2015


Author: martinl
Date: 2015-07-16 05:39:51 -0700 (Thu, 16 Jul 2015)
New Revision: 65599

Modified:
   grass/trunk/gui/wxpython/gui_core/forms.py
Log:
wxGUI: fix r|v.proj functionality (see r65587)

Modified: grass/trunk/gui/wxpython/gui_core/forms.py
===================================================================
--- grass/trunk/gui/wxpython/gui_core/forms.py	2015-07-16 09:44:25 UTC (rev 65598)
+++ grass/trunk/gui/wxpython/gui_core/forms.py	2015-07-16 12:39:51 UTC (rev 65599)
@@ -1177,12 +1177,8 @@
                         mapsets = None
                     if self.task.name in ('r.proj', 'v.proj') \
                             and p.get('name', '') == 'input':
-                        if self.task.name == 'r.proj':
-                            isRaster = True
-                        else:
-                            isRaster = False
                         selection = gselect.ProjSelect(parent = which_panel,
-                                                       isRaster = isRaster)
+                                                       isRaster = self.task.name == 'r.proj')
                         p['wxId'] = [ selection.GetId(), ]
                         selection.Bind(wx.EVT_COMBOBOX, self.OnSetValue)
                         selection.Bind(wx.EVT_TEXT, self.OnUpdateSelection)
@@ -1817,8 +1813,9 @@
             pLocation['wxId-bind'] = pMapset['wxId']
         
         if pLocation and pMapset and pMap:
-            pLocation['wxId-bind'] +=  pMap['wxId']
+            # pLocation['wxId-bind'] +=  pMap['wxId']
             pMapset['wxId-bind'] = pMap['wxId']
+        
         #
         # determine panel size
         #



More information about the grass-commit mailing list